Explorar o código

libdpkg: Remove sentinel from catch_signals array

Guillem Jover %!s(int64=18) %!d(string=hai) anos
pai
achega
e78b452afd
Modificáronse 2 ficheiros con 5 adicións e 1 borrados
  1. 4 0
      ChangeLog
  2. 1 1
      lib/subproc.c

+ 4 - 0
ChangeLog

@@ -1,3 +1,7 @@
+2008-06-04  Guillem Jover  <guillem@debian.org>
+
+	* lib/subproc.c (catch_signals): Remove array sentinel.
+
 2008-06-01  Guillem Jover  <guillem@debian.org>
 
 	* lib/varbuf.c (varbufdupc): Use memset instead of ad-hoc operation.

+ 1 - 1
lib/subproc.c

@@ -29,7 +29,7 @@
 #include <dpkg.h>
 #include <dpkg-priv.h>
 
-static int catch_signals[] = { SIGQUIT, SIGINT, 0 };
+static int catch_signals[] = { SIGQUIT, SIGINT };
 static struct sigaction uncatch_signals[sizeof_array(catch_signals)];
 
 void