From cd0b3911131ee0eddc32c5e3992036c2e769948f Mon Sep 17 00:00:00 2001 From: Jonathan Frazier Date: Tue, 8 Jan 2008 03:26:12 -0600 Subject: minilogd cleanup and warning fixes gcc gives a warning about signed/unsigned ints, and it tries to write to syslog's /dev/log with a dgram socket which gives an EPROTOCOL error. Signed-off-by: Aaron Griffin --- minilogd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'minilogd.c') diff --git a/minilogd.c b/minilogd.c index 9e38094..b24fb75 100644 --- a/minilogd.c +++ b/minilogd.c @@ -1,4 +1,3 @@ - /* minilogd.c * * A pale imitation of syslogd. Most notably, doesn't write anything @@ -43,7 +42,7 @@ void freeBuffer() { strncpy(addr.sun_path,_PATH_LOG,sizeof(addr.sun_path)-1); /* wait for klogd to hit syslog */ sleep(2); - sock = socket(AF_LOCAL, SOCK_DGRAM,0); + sock = socket(AF_LOCAL, SOCK_STREAM,0); conn=connect(sock,(struct sockaddr *) &addr,sizeof(addr)); while (x