From 16babe2c7f7c21a7a007486c87021bc4dce519a8 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Sun, 19 Feb 2012 15:23:28 +0100 Subject: add string for -ETIMEDOUT -ETIMEDOUT is a common error value, so print the string rather than just the number. Signed-off-by: Sascha Hauer --- common/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common') diff --git a/common/misc.c b/common/misc.c index 7edf536bab..a0059c1b79 100644 --- a/common/misc.c +++ b/common/misc.c @@ -60,6 +60,7 @@ const char *strerror(int errnum) case EINTR : str = "Interrupted system call"; break; case ENETUNREACH : str = "Network is unreachable"; break; case ENETDOWN : str = "Network is down"; break; + case ETIMEDOUT : str = "Connection timed out"; break; #if 0 /* These are probably not needed */ case ENOTBLK : str = "Block device required"; break; case EFBIG : str = "File too large"; break; @@ -87,7 +88,6 @@ const char *strerror(int errnum) case ECONNABORTED : str = "Software caused connection abort"; break; case ECONNRESET : str = "Connection reset by peer"; break; case ENOBUFS : str = "No buffer space available"; break; - case ETIMEDOUT : str = "Connection timed out"; break; case ECONNREFUSED : str = "Connection refused"; break; case EHOSTDOWN : str = "Host is down"; break; case EALREADY : str = "Operation already in progress"; break; -- cgit v1.2.3