cleanup: Add and use macro MAX().
[cparser] / wrappergen / write_jna.c
index e48fa05..aa9ed36 100644 (file)
@@ -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)