diff options
author | 2012-05-24 06:57:17 +0000 | |
---|---|---|
committer | 2012-05-24 06:57:17 +0000 | |
commit | 73b7c73f2b88cf326fd529b54129f148254a744c (patch) | |
tree | 4d7157564e53b848cd3a546c17ccd888ec7254a9 /lib/libsqlite3/tool/lemon.c | |
parent | If LINUX_CLONE_SETTLS isn't set, then the clone()d child should inherit (diff) | |
download | wireguard-openbsd-73b7c73f2b88cf326fd529b54129f148254a744c.tar.xz wireguard-openbsd-73b7c73f2b88cf326fd529b54129f148254a744c.zip |
fuck, forgot we still have !C99 compilers
reminded by deraadt@
Diffstat (limited to 'lib/libsqlite3/tool/lemon.c')
-rw-r--r-- | lib/libsqlite3/tool/lemon.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libsqlite3/tool/lemon.c b/lib/libsqlite3/tool/lemon.c index 0b41bdc44b7..034cccf3d0a 100644 --- a/lib/libsqlite3/tool/lemon.c +++ b/lib/libsqlite3/tool/lemon.c @@ -4021,11 +4021,12 @@ void ReportHeader(struct lemon *lemp) else prefix = ""; in = file_open(lemp,".h","rb"); if( in ){ + int eof; for(i=1; i<lemp->nterminal && fgets(line,LINESIZE,in); i++){ sprintf(pattern,"#define %s%-30s %2d\n",prefix,lemp->symbols[i]->name,i); if( strcmp(line,pattern) ) break; } - int eof = fgetc(in); + eof = fgetc(in); fclose(in); if( i==lemp->nterminal && eof == EOF ){ /* No change in the file. Don't rewrite it. */ |