Imported Upstream version 2.5.1
[debian/amanda] / regex-src / debug.c
index 638bf5ac913d76d719b7403ba7a1cc5db28b0619..3663b7539e1c1a37b36c323d46daacac2f0a8713 100644 (file)
@@ -1,9 +1,4 @@
-#include <stdio.h>
-#include <string.h>
-#include <ctype.h>
-#include <limits.h>
-#include <stdlib.h>
-#include <sys/types.h>
+#include "amanda.h"
 #include <regex.h>
 
 #include "utils.h"
@@ -235,8 +230,8 @@ int ch;
        static char buf[10];
 
        if (isprint(ch) || ch == ' ')
-               snprintf(buf, sizeof(buf), "%c", ch);
+               snprintf(buf, SIZEOF(buf), "%c", ch);
        else
-               snprintf(buf, sizeof(buf), "\\%o", ch);
+               snprintf(buf, SIZEOF(buf), "\\%o", ch);
        return(buf);
 }