]> granicus.if.org Git - sudo/commitdiff
For C89, use "const char __func__[]" instead of "const char *__func__".
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 28 Jul 2014 21:01:48 +0000 (15:01 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 28 Jul 2014 21:01:48 +0000 (15:01 -0600)
include/sudo_debug.h

index 59e664c854ff0cd4dbd8626aac6a9cf21121ae3f..0f050d5b9b36b1886cbb898e74521e9cf2b75720 100644 (file)
@@ -98,7 +98,7 @@
 #else
 # define debug_decl(funcname, subsys)                                         \
     const int sudo_debug_subsys = (subsys);                                   \
-    const char *__func__ = #funcname;                                         \
+    const char __func__[] = #funcname;                                        \
     sudo_debug_enter(__func__, __FILE__, __LINE__, sudo_debug_subsys);
 #endif