Просмотр исходного кода

libdpkg: Move stdlib.h inclusion to its direct includers

Guillem Jover лет назад: 18
Родитель
Сommit
e25f2574fd
12 измененных файлов с 24 добавлено и 1 удалено
  1. 14 0
      ChangeLog
  2. 1 0
      dselect/pkglist.cc
  3. 1 0
      lib/database.c
  4. 0 1
      lib/dpkg-db.h
  5. 1 0
      lib/dump.c
  6. 1 0
      lib/parse.c
  7. 1 0
      lib/parsehelp.c
  8. 1 0
      lib/triglib.c
  9. 1 0
      src/filesdb.c
  10. 1 0
      src/help.c
  11. 1 0
      src/select.c
  12. 1 0
      src/trigproc.c

+ 14 - 0
ChangeLog

@@ -1,3 +1,17 @@
+2008-09-14  Guillem Jover  <guillem@debian.org>
+
+	* lib/dpkg-db.h: Move <stdlib.h> inclusion to ...
+	* dselect/pkglist.cc: ... here.
+	* lib/database.c: Likewise.
+	* lib/dump.c: Likewise.
+	* lib/parse.c: Likewise.
+	* lib/parsehelp.c: Likewise.
+	* lib/triglib.c: Likewise.
+	* src/filesdb.c: Likewise.
+	* src/help.c: Likewise.
+	* src/select.c: Likewise.
+	* src/trigproc.c: Likewise.
+
 2008-09-14  Guillem Jover  <guillem@debian.org>
 
 	* configure.ac (AC_CHECK_FUNCS): Move 'vsnprintf', 'snprintf',

+ 1 - 0
dselect/pkglist.cc

@@ -26,6 +26,7 @@
 #include <dpkg-i18n.h>
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
 #include <assert.h>
 #include <errno.h>

+ 1 - 0
lib/database.c

@@ -25,6 +25,7 @@
 
 #include <ctype.h>
 #include <string.h>
+#include <stdlib.h>
 
 #include <dpkg.h>
 #include <dpkg-db.h>

+ 0 - 1
lib/dpkg-db.h

@@ -28,7 +28,6 @@
 DPKG_BEGIN_DECLS
 
 #include <stdio.h>
-#include <stdlib.h>
 #include <string.h>
 
 struct versionrevision {

+ 1 - 0
lib/dump.c

@@ -27,6 +27,7 @@
 #include <dpkg-i18n.h>
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
 #include <errno.h>
 #include <unistd.h>

+ 1 - 0
lib/parse.c

@@ -24,6 +24,7 @@
 #include <dpkg-i18n.h>
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
 #include <ctype.h>
 #include <stdarg.h>

+ 1 - 0
lib/parsehelp.c

@@ -24,6 +24,7 @@
 #include <dpkg-i18n.h>
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <ctype.h>
 #include <string.h>
 

+ 1 - 0
lib/triglib.c

@@ -26,6 +26,7 @@
 #include <dpkg-i18n.h>
 
 #include <assert.h>
+#include <stdlib.h>
 #include <unistd.h>
 #include <errno.h>
 

+ 1 - 0
src/filesdb.c

@@ -25,6 +25,7 @@
 #include <dpkg-i18n.h>
 
 #include <assert.h>
+#include <stdlib.h>
 #include <unistd.h>
 #include <fcntl.h>
 #include <string.h>

+ 1 - 0
src/help.c

@@ -24,6 +24,7 @@
 #include <dpkg-i18n.h>
 
 #include <errno.h>
+#include <stdlib.h>
 #include <unistd.h>
 #include <dirent.h>
 #include <assert.h>

+ 1 - 0
src/select.c

@@ -24,6 +24,7 @@
 #include <dpkg-i18n.h>
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
 #include <assert.h>
 #include <fnmatch.h>

+ 1 - 0
src/trigproc.c

@@ -26,6 +26,7 @@
 #include <dpkg-i18n.h>
 
 #include <assert.h>
+#include <stdlib.h>
 #include <sys/stat.h>
 #include <sys/fcntl.h>