]> git.pld-linux.org Git - packages/acpid.git/blame - acpid-gcc4.patch
- typo
[packages/acpid.git] / acpid-gcc4.patch
CommitLineData
cfdb300d 1--- acpid-1.0.4/ud_socket.c.warning 2003-11-17 16:24:58.000000000 -0500
2+++ acpid-1.0.4/ud_socket.c 2005-03-16 17:51:40.000000000 -0500
3@@ -58,7 +58,7 @@
4 while (1) {
5 int newsock = 0;
6 struct sockaddr_un cliaddr;
7- int len = sizeof(struct sockaddr_un);
8+ socklen_t len = sizeof(struct sockaddr_un);
9
10 newsock = accept(listenfd, (struct sockaddr *)&cliaddr, &len);
11 if (newsock < 0) {
12--- acpid-1.0.4/acpid.c.warning 2004-10-17 18:33:51.000000000 -0400
13+++ acpid-1.0.4/acpid.c 2005-03-16 17:52:23.000000000 -0500
14@@ -61,7 +61,7 @@
15 main(int argc, char **argv)
16 {
17 int event_fd;
18- int sock_fd;
19+ int sock_fd = -1;
20
21 /* learn who we really are */
22 progname = (const char *)strrchr(argv[0], '/');
23@@ -386,9 +386,7 @@
24 umask(0);
25
26 /* get outta the way */
27- chdir("/");
28-
29- return 0;
30+ return chdir("/");
31 }
32
33 static int
This page took 0.459787 seconds and 4 git commands to generate.