Bill Nottingham e9b83d
--- acpid-1.0.4/ud_socket.c.warning	2003-11-17 16:24:58.000000000 -0500
Bill Nottingham e9b83d
+++ acpid-1.0.4/ud_socket.c	2005-03-16 17:51:40.000000000 -0500
Bill Nottingham e9b83d
@@ -58,7 +58,7 @@
Bill Nottingham e9b83d
 	while (1) {
Bill Nottingham e9b83d
 		int newsock = 0;
Bill Nottingham e9b83d
 		struct sockaddr_un cliaddr;
Bill Nottingham e9b83d
-		int len = sizeof(struct sockaddr_un);
Bill Nottingham 9395d5
+		socklen_t len = sizeof(struct sockaddr_un);
Bill Nottingham e9b83d
 
Bill Nottingham e9b83d
 		newsock = accept(listenfd, (struct sockaddr *)&cliaddr, &len;;
Bill Nottingham e9b83d
 		if (newsock < 0) {
Bill Nottingham e9b83d
--- acpid-1.0.4/acpid.c.warning	2004-10-17 18:33:51.000000000 -0400
Bill Nottingham e9b83d
+++ acpid-1.0.4/acpid.c	2005-03-16 17:52:23.000000000 -0500
Bill Nottingham e9b83d
@@ -61,7 +61,7 @@
Bill Nottingham e9b83d
 main(int argc, char **argv)
Bill Nottingham e9b83d
 {
Bill Nottingham e9b83d
 	int event_fd;
Bill Nottingham e9b83d
-	int sock_fd;
Bill Nottingham e9b83d
+	int sock_fd = -1;
Bill Nottingham e9b83d
 
Bill Nottingham e9b83d
 	/* learn who we really are */
Bill Nottingham e9b83d
 	progname = (const char *)strrchr(argv[0], '/');
Bill Nottingham e9b83d
@@ -386,9 +386,7 @@
Bill Nottingham e9b83d
 	umask(0);
Bill Nottingham e9b83d
 
Bill Nottingham e9b83d
 	/* get outta the way */
Bill Nottingham e9b83d
-	chdir("/");
Bill Nottingham e9b83d
-
Bill Nottingham e9b83d
-	return 0;
Bill Nottingham e9b83d
+	return chdir("/");
Bill Nottingham e9b83d
 }
Bill Nottingham e9b83d
 
Bill Nottingham e9b83d
 static int