File aiccu_20070115.dif of Package aiccu
--- common/ayiya.c
+++ common/ayiya.c 2007/06/22 15:30:11
@@ -66,7 +66,7 @@
clientaddr ? " [" : "",
clientaddr ? clienthost : "" ,
clientaddr ? "]:" : "",
- clientservice ? clientservice : "");
+ *clientservice ? clientservice : "");
/* Print the log message behind it */
va_start(ap, fmt);
--- unix-console/main.c
+++ unix-console/main.c 2007/06/22 15:33:26
@@ -426,9 +426,9 @@
(void)chdir("/");
/* Cleanup stdin/out/err */
- freopen("/dev/null","r",stdin);
- freopen("/dev/null","w",stdout);
- freopen("/dev/null","w",stderr);
+ (void)freopen("/dev/null","r",stdin);
+ (void)freopen("/dev/null","w",stdout);
+ (void)freopen("/dev/null","w",stderr);
/* */
f = fopen(g_aiccu->pidfile, "w");