]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/doc/log.txt
Use size_t in xmalloc() and xrealloc().
[libucw.git] / ucw / doc / log.txt
index 4eb15769e5a3a9f07dcb70c207b9fade63c02cd5..28265f7290af6c4795cb5d85e8736f75df062435 100644 (file)
@@ -82,7 +82,7 @@ Example
        int main(int argc, char **argv)
        {
          log_init(argv[0]);
-         struct log_stream *ls = log_new_file("/var/log/utterances");
+         struct log_stream *ls = log_new_file("/var/log/utterances", 0);
          msg(L_INFO | ls->regnum, "Aye captain, we have a log file");
          msg(L_INFO, "Alas, stderr still works");
          return 0;