diff options
author | Topi Miettinen <toiwoton@gmail.com> | 2019-01-05 19:37:34 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-01-12 16:02:26 +0100 |
commit | 7ae3561a5a6c85b080808335f0dd8f137acd5ba8 (patch) | |
tree | b03da7c5056c7009763b64f1ce92419832dbc94d /src/libsystemd | |
parent | Merge pull request #11196 from yuwata/udevd-tiny-cleanups (diff) | |
download | systemd-7ae3561a5a6c85b080808335f0dd8f137acd5ba8.tar.xz systemd-7ae3561a5a6c85b080808335f0dd8f137acd5ba8.zip |
Delete duplicate lines
Found by inspecting results of running this small program:
int main(int argc, const char **argv) {
for (int i = 1; i < argc; i++) {
FILE *f;
char line[1024], prev[1024], *r;
int lineno;
prev[0] = '\0';
lineno = 1;
f = fopen(argv[i], "r");
if (!f)
exit(1);
do {
r = fgets(line, sizeof(line), f);
if (!r)
break;
if (strcmp(line, prev) == 0)
printf("%s:%d: error: dup %s", argv[i], lineno, line);
lineno++;
strcpy(prev, line);
} while (!feof(f));
fclose(f);
}
}
Diffstat (limited to 'src/libsystemd')
-rw-r--r-- | src/libsystemd/sd-resolve/sd-resolve.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/libsystemd/sd-resolve/sd-resolve.c b/src/libsystemd/sd-resolve/sd-resolve.c index 21d783b8f0..36b9c8d019 100644 --- a/src/libsystemd/sd-resolve/sd-resolve.c +++ b/src/libsystemd/sd-resolve/sd-resolve.c @@ -912,7 +912,6 @@ static int alloc_query(sd_resolve *resolve, bool floating, sd_resolve_query **_q return 0; } - int resolve_getaddrinfo_with_destroy_callback( sd_resolve *resolve, sd_resolve_query **ret_query, |