summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
0a4fd9e)
@@ -1,6 +1,8 @@
+ * Kill bogus warning, adh-main.c: `arg2' might be used uninitialized ...
+ * #include <sys/types.h> and <unistd.h> for fcntl in */*.c.
adns (0.10) unstable; urgency=low
* Fix <sys/fcntl.h> in client/adnsresfilter.c to <fcntl.h>.
adns (0.10) unstable; urgency=low
* Fix <sys/fcntl.h> in client/adnsresfilter.c to <fcntl.h>.
+ * Kill bogus warning, adh-main.c: `arg2' might be used uninitialized ...
+ * #include <sys/types.h> and <unistd.h> for fcntl in */*.c.
} else if (oip->type == ot_funcarg2) {
assert(argv_p);
arg= *++(*argv_p);
} else if (oip->type == ot_funcarg2) {
assert(argv_p);
arg= *++(*argv_p);
- if (arg) arg2= *++(*argv_p);
+ arg2= arg ? *++(*argv_p) : 0;
if (!arg || !arg2)
usageerr("option --%s requires two more arguments", oip->lopt);
} else {
if (!arg || !arg2)
usageerr("option --%s requires two more arguments", oip->lopt);
} else {
#include <assert.h>
#include <ctype.h>
#include <assert.h>
#include <ctype.h>
+#include <sys/types.h>
+#include <unistd.h>
#include <fcntl.h>
#include "adns.h"
#include <fcntl.h>
#include "adns.h"
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
+#include <unistd.h>
+#include <fcntl.h>
+
#include "harness.h"
#include "internal.h"
#include "harness.h"
#include "internal.h"
#include <assert.h>
#include <string.h>
#include <assert.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <errno.h>
#include <stdlib.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
+#include <unistd.h>
+#include <fcntl.h>
+
#include "harness.h"
static FILE *Tinputfile, *Treportfile;
#include "harness.h"
static FILE *Tinputfile, *Treportfile;
#include <assert.h>
#include <string.h>
#include <assert.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <errno.h>
#include <stdlib.h>
+#include <sys/types.h>
+#include <unistd.h>
+#include <fcntl.h>
+
#include "harness.h"
static FILE *Toutputfile;
#include "harness.h"
static FILE *Toutputfile;