1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-02 02:21:44 +03:00

fileio: drop FOREACH_LINE(), it's not used anymore

This commit is contained in:
Lennart Poettering 2018-10-19 21:56:29 +02:00
parent d68c645bd3
commit 923db66a16

View File

@ -59,15 +59,6 @@ DIR *xopendirat(int dirfd, const char *name, int flags);
int search_and_fopen(const char *path, const char *mode, const char *root, const char **search, FILE **_f);
int search_and_fopen_nulstr(const char *path, const char *mode, const char *root, const char *search, FILE **_f);
#define FOREACH_LINE(line, f, on_error) \
for (;;) \
if (!fgets(line, sizeof(line), f)) { \
if (ferror(f)) { \
on_error; \
} \
break; \
} else
int fflush_and_check(FILE *f);
int fflush_sync_and_check(FILE *f);