]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Also fix up hexd to Squid coding standards
authorHenrik Nordstrom <henrik@henriknordstrom.net>
Fri, 20 Aug 2010 02:27:43 +0000 (04:27 +0200)
committerHenrik Nordstrom <henrik@henriknordstrom.net>
Fri, 20 Aug 2010 02:27:43 +0000 (04:27 +0200)
tools/purge/hexd.cc

index 234b81bfe213b9ce1430e061ded7357071d4998b..b67844131e3a3b00d08e89065838d3d058f1638a 100644 (file)
@@ -1,4 +1,6 @@
 #include "config.h"
+// for xstrdup
+#include "util.h"
 
 #include <stdio.h>
 #include <sys/stat.h>
@@ -6,6 +8,7 @@
 #include <stdlib.h>
 #include <unistd.h>
 #include <errno.h>
+#include <string.h>
 
 class InputByByte
 {
@@ -55,7 +58,7 @@ int
 InputByByte::close()
 {
     xfree((void*) buffer);
-    return std::close(fd);
+    return ::close(fd);
 }
 
 int