[BACK]Return to log.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / cvs

Diff for /src/usr.bin/cvs/log.c between version 1.6 and 1.7

version 1.6, 2004/12/06 21:03:12 version 1.7, 2004/12/07 17:10:56
Line 82 
Line 82 
  * Initialize the logging facility of the server.   * Initialize the logging facility of the server.
  * Returns 0 on success, or -1 on failure.   * Returns 0 on success, or -1 on failure.
  */   */
   
 int  int
 cvs_log_init(u_int dest, u_int flags)  cvs_log_init(u_int dest, u_int flags)
 {  {
Line 116 
Line 115 
  *   *
  * Cleanup the logging facility.   * Cleanup the logging facility.
  */   */
   
 void  void
 cvs_log_cleanup(void)  cvs_log_cleanup(void)
 {  {
         closelog_r(&cvs_sl);  
   
           closelog_r(&cvs_sl);
 }  }
   
   
Line 184 
Line 182 
  * The <fmt> argument should not have a terminating newline, as this is taken   * The <fmt> argument should not have a terminating newline, as this is taken
  * care of by the logging facility.   * care of by the logging facility.
  */   */
   
 int  int
 cvs_log(u_int level, const char *fmt, ...)  cvs_log(u_int level, const char *fmt, ...)
 {  {
Line 205 
Line 202 
  * The <fmt> argument should not have a terminating newline, as this is taken   * The <fmt> argument should not have a terminating newline, as this is taken
  * care of by the logging facility.   * care of by the logging facility.
  */   */
   
 int  int
 cvs_vlog(u_int level, const char *fmt, va_list vap)  cvs_vlog(u_int level, const char *fmt, va_list vap)
 {  {
Line 286 
Line 282 
  * Wrapper function around printf() that prepends a 'M' or 'E' command when   * Wrapper function around printf() that prepends a 'M' or 'E' command when
  * the program is acting as server.   * the program is acting as server.
  */   */
   
 int  int
 cvs_printf(const char *fmt, ...)  cvs_printf(const char *fmt, ...)
 {  {

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7