X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=common%2Fatobool.c;h=9cdcef6df2d80e637ec3b63237a76dd9777e5516;hb=e8db7f6eea9b35527ddd4532affabd18a30549b5;hp=f22aae8a0f2d44e3c7986473467ab83a43c4a1a5;hpb=7a01b10fee894dea7ecb3252886912eab41e9693;p=debian%2Fsudo diff --git a/common/atobool.c b/common/atobool.c index f22aae8..9cdcef6 100644 --- a/common/atobool.c +++ b/common/atobool.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2010 Todd C. Miller + * Copyright (c) 2010-2012 Todd C. Miller * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -17,7 +17,6 @@ #include #include -#include #include #ifdef STDC_HEADERS @@ -39,10 +38,13 @@ #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 +79,5 @@ atobool(const char *str) return 0; break; } - return -1; + debug_return_int(-1); }