projects
/
cparser
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
cleanup: Add and use macro MAX().
[cparser]
/
wrappergen
/
write_jna.c
diff --git
a/wrappergen/write_jna.c
b/wrappergen/write_jna.c
index
e48fa05
..
aa9ed36
100644
(file)
--- a/
wrappergen/write_jna.c
+++ b/
wrappergen/write_jna.c
@@
-453,7
+453,7
@@
void write_jna_decls(FILE *output, const translation_unit_t *unit)
/* read the avoid list */
FILE *avoid = fopen("avoid.config", "r");
if (avoid != NULL) {
-
while (!feof(avoid)
) {
+
for (;;
) {
char buf[1024];
char *res = fgets(buf, sizeof(buf), avoid);
if (res == NULL)