]> git.pld-linux.org Git - packages/acpid.git/commitdiff
- gcc4 fix from fedora
authorfreetz <freetz@pld-linux.org>
Wed, 1 Feb 2006 22:41:26 +0000 (22:41 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    acpid-gcc4.patch -> 1.1

acpid-gcc4.patch [new file with mode: 0644]

diff --git a/acpid-gcc4.patch b/acpid-gcc4.patch
new file mode 100644 (file)
index 0000000..471171a
--- /dev/null
@@ -0,0 +1,33 @@
+--- acpid-1.0.4/ud_socket.c.warning    2003-11-17 16:24:58.000000000 -0500
++++ acpid-1.0.4/ud_socket.c    2005-03-16 17:51:40.000000000 -0500
+@@ -58,7 +58,7 @@
+       while (1) {
+               int newsock = 0;
+               struct sockaddr_un cliaddr;
+-              int len = sizeof(struct sockaddr_un);
++              socklen_t len = sizeof(struct sockaddr_un);
+               newsock = accept(listenfd, (struct sockaddr *)&cliaddr, &len);
+               if (newsock < 0) {
+--- acpid-1.0.4/acpid.c.warning        2004-10-17 18:33:51.000000000 -0400
++++ acpid-1.0.4/acpid.c        2005-03-16 17:52:23.000000000 -0500
+@@ -61,7 +61,7 @@
+ main(int argc, char **argv)
+ {
+       int event_fd;
+-      int sock_fd;
++      int sock_fd = -1;
+       /* learn who we really are */
+       progname = (const char *)strrchr(argv[0], '/');
+@@ -386,9 +386,7 @@
+       umask(0);
+       /* get outta the way */
+-      chdir("/");
+-
+-      return 0;
++      return chdir("/");
+ }
+ static int
This page took 0.069306 seconds and 4 git commands to generate.