X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Flog.c;h=9ee0621160ebca923233e94889ce72153a532049;hp=cbdf59fbc61f06e132f4f27f235a662257b11926;hb=d5e283b1a75c5f8249300b465b4e7b55130bec49;hpb=7a54d852bfa09c828bbc4907adddee7e4beb1715 diff --git a/src/log.c b/src/log.c index cbdf59fb..9ee06211 100644 --- a/src/log.c +++ b/src/log.c @@ -56,7 +56,7 @@ as that of the covered work. */ # define FPUTS( s, f) fputs( (s), (f)) #endif /* def __VMS [else] */ -/* This file impplement support for "logging". Logging means printing +/* This file implements support for "logging". Logging means printing output, plus several additional features: - Cataloguing output by importance. You can specify that a log @@ -787,7 +787,7 @@ escnonprint_uri (const char *str) void log_cleanup (void) { - int i; + size_t i; for (i = 0; i < countof (ring); i++) xfree_null (ring[i].buffer); } @@ -806,8 +806,8 @@ redirect_output (void) logfp = unique_create (DEFAULT_LOGFILE, false, &logfile); if (logfp) { - fprintf (stderr, _("\n%s received, redirecting output to `%s'.\n"), - redirect_request_signal_name, logfile); + fprintf (stderr, _("\n%s received, redirecting output to %s.\n"), + redirect_request_signal_name, quote (logfile)); xfree (logfile); /* Dump the context output to the newly opened log. */ log_dump_context ();