From 0f4518e1ec10a3553a5984a8ccc03b2dbc2f1eab Mon Sep 17 00:00:00 2001 From: ajs Date: Fri, 19 Nov 2004 23:40:16 +0000 Subject: 2004-11-19 David Young * log.c: (safe_strerror) New function: safe wrapper for strerror. --- lib/log.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/log.h') 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 */ -- cgit v1.2.3