summaryrefslogtreecommitdiff
path: root/lib/log.h
diff options
context:
space:
mode:
authorajs <ajs>2004-11-19 23:40:16 +0000
committerajs <ajs>2004-11-19 23:40:16 +0000
commitca35976927190883368ef3bd32bbf9f174575bd6 (patch)
treeaa3b9fa981719c48f0418abb06355e88ee39dbcb /lib/log.h
parentff29bb31505b485e8ffa561e21d075d28ac7d5e7 (diff)
2004-11-19 David Young <dyoung@pobox.com>
* log.c: (safe_strerror) New function: safe wrapper for strerror.
Diffstat (limited to 'lib/log.h')
-rw-r--r--lib/log.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/log.h b/lib/log.h
index 9f6ec3be..b5dbdfe1 100644
--- a/lib/log.h
+++ b/lib/log.h
@@ -126,4 +126,7 @@ const char *mes_lookup (struct message *meslist, int max, int index);
extern const char *zlog_priority[];
+/* Safe version of strerror -- never returns NULL. */
+extern const char *safe_strerror(int errnum);
+
#endif /* _ZEBRA_LOG_H */