Changeset a1ca37d in freewrt


Ignore:
Timestamp:
May 10, 2007, 5:26:47 PM (19 years ago)
Author:
Thorsten Glaser <tg@…>
Children:
4ea29a0c
Parents:
fe0174b
Message:

unbreak -ddd mode

git-svn-id: svn://www.freewrt.org/branches/common-adk@2480 afb5a338-a214-0410-bd46-81f09a774fd1

Location:
tools/nfotiser
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tools/nfotiser/dbif.c

    rfe0174b ra1ca37d  
    9898        if (debug > 1)
    9999                fprintf(stderr, "trace: running SQL command \"%s\"\n", sqlcmd);
    100         while ((debug > 2) && (getchar() != 13))
     100        while ((debug > 2) && ((rv = getchar()) != '\n'))
    101101                ;
    102102
  • tools/nfotiser/main.c

    rfe0174b ra1ca37d  
    6363                warn("cannot set the UTF-8 locale");
    6464
     65        /* make stdin unbuffered */
     66        if (setvbuf(stdin, NULL, _IONBF, 0))
     67                warn("cannot set stdin to unbuffered I/O");
     68
    6569        ofile = "nfo_.db";      /* default output file */
    6670        /* parse arguments */
Note: See TracChangeset for help on using the changeset viewer.