summaryrefslogtreecommitdiffstats
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
commit0f4518e1ec10a3553a5984a8ccc03b2dbc2f1eab (patch)
treefddcdc2da786f9b17e9b6451dd8279a8c8699f89 /lib/log.h
parent2ae15c0fd47dab8ca71ed6e0caac12ecc1ccb66a (diff)
downloadquagga-0f4518e1ec10a3553a5984a8ccc03b2dbc2f1eab.tar.bz2
quagga-0f4518e1ec10a3553a5984a8ccc03b2dbc2f1eab.tar.xz
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 */