Преглед на файлове

libdpkg: Remove sentinel from catch_signals array

Guillem Jover преди 18 години
родител
ревизия
e78b452afd
променени са 2 файла, в които са добавени 5 реда и са изтрити 1 реда
  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>
 2008-06-01  Guillem Jover  <guillem@debian.org>
 
 
 	* lib/varbuf.c (varbufdupc): Use memset instead of ad-hoc operation.
 	* 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.h>
 #include <dpkg-priv.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)];
 static struct sigaction uncatch_signals[sizeof_array(catch_signals)];
 
 
 void
 void