Imported Upstream version 1.8.4p4
[debian/sudo] / common / atobool.c
index f22aae8a0f2d44e3c7986473467ab83a43c4a1a5..6d6b5028938bbabb209eb1d2d6072c37e59ab31a 100644 (file)
 #endif /* HAVE_STRINGS_H */
 
 #include "missing.h"
+#include "sudo_debug.h"
 
 int
 atobool(const char *str)
 {
+    debug_decl(atobool, SUDO_DEBUG_UTIL)
+
     switch (*str) {
        case '0':
        case '1':
@@ -77,5 +80,5 @@ atobool(const char *str)
                return 0;
            break;
     }
-    return -1;
+    debug_return_int(-1);
 }