]> git.tue.mpg.de Git - adu.git/commitdiff
Make fd.c and select.c include their own header file.
authorAndre Noll <maan@tuebingen.mpg.de>
Sat, 3 Jan 2015 21:36:17 +0000 (21:36 +0000)
committerAndre Noll <maan@tuebingen.mpg.de>
Sat, 3 Jan 2015 22:09:55 +0000 (22:09 +0000)
This helps to spot bugs where declaration and implementation
differ. Fortunately, there is so such bug in adu, but it's a good thing
(TM) to let the compiler error out in this case.

fd.c
select.c

diff --git a/fd.c b/fd.c
index 66b3cc057225eeebbd9a7598977082392773f7f3..79843561a73e050bd6a362662b5aff70cd096a30 100644 (file)
--- a/fd.c
+++ b/fd.c
@@ -14,6 +14,7 @@
 #include "adu.h"
 #include "error.h"
 #include "string.h"
+#include "fd.h"
 
 /**
  * Wrapper for the write system call.
index 4e11e7f7e39251908d1aa530e1c988b581d1f0d4..e0009927d188359c76a78116b7bb6148cd186f6d 100644 (file)
--- a/select.c
+++ b/select.c
@@ -19,6 +19,7 @@
 #include "error.h"
 #include "user.h"
 #include "select.cmdline.h"
+#include "select.h"
 
 /** \cond */
 /* global list */