diff options
author | Vincent Sanders <vince@kyllikki.org> | 2015-05-28 17:06:18 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2015-05-28 17:06:18 +0100 |
commit | 0d811963c1498aa625b5438bf66dbb677a0d4494 (patch) | |
tree | 470d44bdf1986a9e77a5bc5f2d71fe6d8bf7827f /utils/container.c | |
parent | 30c2962faa0c31d70b91993ccd9c2f3f8f298810 (diff) | |
download | netsurf-0d811963c1498aa625b5438bf66dbb677a0d4494.tar.gz netsurf-0d811963c1498aa625b5438bf66dbb677a0d4494.tar.bz2 |
fixup all the remaining logging macro callsites
The semantic patch tool appears to have missed some difficult to
reason about callsites which have now been manually cleaned up
Diffstat (limited to 'utils/container.c')
-rw-r--r-- | utils/container.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/container.c b/utils/container.c index 5946d12f9..68ea32211 100644 --- a/utils/container.c +++ b/utils/container.c @@ -208,7 +208,7 @@ static void container_process(struct container_ctx *ctx) /* now work through the directory structure taking it apart into * our structure */ #define BEREAD(x) do { val = fread(&(x), 4, 1, ctx->fh); if (val == 0)\ - LOG(("empty read"));(x) = ntohl((x)); } while (0) + LOG("empty read");(x) = ntohl((x)); } while (0) do { val = fread(filename, 64, 1, ctx->fh); if (val == 0) @@ -295,7 +295,7 @@ static void container_write_dir(struct container_ctx *ctx) unsigned int i; u_int32_t tmp; #define BEWRITE(x) do {tmp = htonl((x)); val = fwrite(&tmp, 4, 1, ctx->fh);\ - if (val == 0) LOG(("empty write")); } while(0) + if (val == 0) LOG("empty write"); } while(0) for (i = 1; i <= ctx->entries; i++) { struct container_dirent *e = ctx->directory + i - 1; val = fwrite(e->filename, 64, 1, ctx->fh); |