]> mj.ucw.cz Git - libucw.git/commit
Logging: Clean up log-stream.c.
authorMartin Mares <mj@ucw.cz>
Fri, 13 Feb 2009 17:12:39 +0000 (18:12 +0100)
committerMartin Mares <mj@ucw.cz>
Fri, 13 Feb 2009 17:12:39 +0000 (18:12 +0100)
commit50f3497ac9b5b0178de03522b2cfcb5893e7ac2f
treeef61aebc9384386cdc7e9cd34988b0dd378c5517
parent66a5e689124dc64357729702948f4bfb8a03e8da
Logging: Clean up log-stream.c.

  o  Simplified log_new_stream() -- recycling of closed streams
     and allocation of new streams are two different code paths now.
  o  The calls to log_init_module() need not be conditional.
  o  Use clist_init() for initializing clists.
  o  The usual coding style and namespace cleanups.

Also added an explanatory comment about the uninitialized state to log.c.
ucw/log-file.c
ucw/log-stream.c
ucw/log-syslog.c
ucw/log.c
ucw/log.h