summaryrefslogtreecommitdiff
path: root/dselect/method.cc
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2009-10-17 02:38:03 +0200
committerGuillem Jover <guillem@debian.org>2009-10-26 05:19:55 +0100
commit1c88ead04c95096f03b61a6032d443a327964926 (patch)
tree1772837ea55c7ecd2b9d5f62042041ab45aa4918 /dselect/method.cc
parentff33aa430e6de845a089a6a023a9478dafa109cc (diff)
downloaddpkg-1c88ead04c95096f03b61a6032d443a327964926.tar.gz
Sort order of header includes
Place first <config.h> and <compat.h>, then all <sys/*.h> sorted by complexity, followed by the rest of the system headers, then <dpkg/*.h> and finally the local "*.h" ones. Move <dpkg/i18n.h> inclusion into libdpkg inclusion block, as the <gettext.h> compatibility header already takes care of including <locale.h> before <libintl.h> on environments were its probamatic. Removed duplicated inclusions.
Diffstat (limited to 'dselect/method.cc')
-rw-r--r--dselect/method.cc23
1 files changed, 11 insertions, 12 deletions
diff --git a/dselect/method.cc b/dselect/method.cc
index b1d987889..767473236 100644
--- a/dselect/method.cc
+++ b/dselect/method.cc
@@ -23,25 +23,24 @@
#include <config.h>
#include <compat.h>
-#include <dpkg/i18n.h>
-
-#include <stdio.h>
-#include <string.h>
-#include <stdlib.h>
-#include <signal.h>
-#include <sys/stat.h>
#include <sys/types.h>
+#include <sys/stat.h>
+#include <sys/file.h>
#include <sys/wait.h>
+
+#include <assert.h>
#include <errno.h>
-#include <unistd.h>
-#include <dirent.h>
#include <limits.h>
#include <ctype.h>
-#include <assert.h>
-#include <unistd.h>
+#include <string.h>
#include <fcntl.h>
-#include <sys/file.h>
+#include <dirent.h>
+#include <signal.h>
+#include <unistd.h>
+#include <stdlib.h>
+#include <stdio.h>
+#include <dpkg/i18n.h>
#include <dpkg/dpkg.h>
#include <dpkg/dpkg-db.h>
#include <dpkg/subproc.h>