diff options
| author | jasper <> | 2009-06-02 16:47:50 +0000 | 
|---|---|---|
| committer | jasper <> | 2009-06-02 16:47:50 +0000 | 
| commit | cc06823590b939ee55e3d33b42190c6ebdba617f (patch) | |
| tree | 1b205aa1de88b51de0a7b8ebaaa0c384de59b93f /src/lib/libc/net/gai_strerror.c | |
| parent | 38e70c5ee4aec1ddb9faef430ea6afd40731045d (diff) | |
| download | openbsd-cc06823590b939ee55e3d33b42190c6ebdba617f.tar.gz openbsd-cc06823590b939ee55e3d33b42190c6ebdba617f.tar.bz2 openbsd-cc06823590b939ee55e3d33b42190c6ebdba617f.zip  | |
- define EAI_OVERFLOW, as per IEEE Std 1003.1-2001(Interpretation #13)
hint from claudio@, ok millert@
Diffstat (limited to 'src/lib/libc/net/gai_strerror.c')
| -rw-r--r-- | src/lib/libc/net/gai_strerror.c | 4 | 
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/libc/net/gai_strerror.c b/src/lib/libc/net/gai_strerror.c index 767bc2f7e8..f4126413f8 100644 --- a/src/lib/libc/net/gai_strerror.c +++ b/src/lib/libc/net/gai_strerror.c  | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: gai_strerror.c,v 1.6 2004/12/20 22:35:32 millert Exp $ */ | 1 | /* $OpenBSD: gai_strerror.c,v 1.7 2009/06/02 16:47:50 jasper Exp $ */ | 
| 2 | 2 | ||
| 3 | /* | 3 | /* | 
| 4 | * Copyright (c) 1997-1999, Craig Metz, All rights reserved. | 4 | * Copyright (c) 1997-1999, Craig Metz, All rights reserved. | 
| @@ -70,6 +70,8 @@ gai_strerror(int errnum) | |||
| 70 | return "invalid value for hints"; | 70 | return "invalid value for hints"; | 
| 71 | case EAI_PROTOCOL: | 71 | case EAI_PROTOCOL: | 
| 72 | return "resolved protocol is unknown"; | 72 | return "resolved protocol is unknown"; | 
| 73 | case EAI_OVERFLOW: | ||
| 74 | return "argument buffer overflow"; | ||
| 73 | default: | 75 | default: | 
| 74 | return "unknown/invalid error"; | 76 | return "unknown/invalid error"; | 
| 75 | } | 77 | } | 
