/*
+ * $Id: comment.c,v 1.8.10.1 2008-11-14 10:04:52 didg Exp $
+ *
* Copyright (c) 1990,1994 Regents of The University of Michigan.
* All Rights Reserved. See COPYRIGHT.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
-#endif
+#endif /* HAVE_CONFIG_H */
-#include <sys/syslog.h>
+#include <atalk/logger.h>
#include <sys/param.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <errno.h>
#include "comment.h"
if (( cs = (struct comstate *)malloc( sizeof( struct comstate ))) ==
NULL ) {
- syslog( LOG_ERR, "malloc: %m" );
+ LOG(log_error, logtype_papd, "malloc: %s", strerror(errno) );
exit( 1 );
}
}
}
if ( comment == NULL || comment->c_handler != handler ) {
- syslog( LOG_ERR, "comswitch: can't find handler!" );
+ LOG(log_error, logtype_papd, "comswitch: can't find handler!" );
return( -1 );
}
compop();