]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
- (djm) Bug #501: gai_strerror should return char*;
authorDamien Miller <djm@mindrot.org>
Mon, 24 Feb 2003 01:35:08 +0000 (12:35 +1100)
committerDamien Miller <djm@mindrot.org>
Mon, 24 Feb 2003 01:35:08 +0000 (12:35 +1100)
   fix from dtucker@zip.com.au

ChangeLog
openbsd-compat/fake-getaddrinfo.c
openbsd-compat/fake-getaddrinfo.h

index b2d7448432f3d96be5c795f753c5cfc3654ea01a..fab77a96677f3e6d4fb1724a39e054bad8d5c892 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -79,6 +79,8 @@
      ...sizeof(&adat.session) is not good here.
      henning@, deraadt@, millert@
  - (djm) Add new object files to Makefile and reorder
+ - (djm) Bug #501: gai_strerror should return char*; 
+   fix from dtucker@zip.com.au
 
 20030211
  - (djm) Cygwin needs libcrypt too. Patch from vinschen@redhat.com
      save auth method before monitor_reset_key_state(); bugzilla bug #284;
      ok provos@
 
-$Id: ChangeLog,v 1.2616 2003/02/24 01:18:46 djm Exp $
+$Id: ChangeLog,v 1.2617 2003/02/24 01:35:08 djm Exp $
index 2a2f269cb163168bc17aa68bc79b177aa8894e0f..e04776606480e869e2c4ba60e43df3188a616be3 100644 (file)
 #include "includes.h"
 #include "ssh.h"
 
-RCSID("$Id: fake-getaddrinfo.c,v 1.3 2003/02/05 23:50:42 djm Exp $");
+RCSID("$Id: fake-getaddrinfo.c,v 1.4 2003/02/24 01:35:09 djm Exp $");
 
 #ifndef HAVE_GAI_STRERROR
-const char *gai_strerror(int ecode)
+char *gai_strerror(int ecode)
 {
        switch (ecode) {
                case EAI_NODATA:
index a14a2cc118e7d60194603a0ae913e3d6bf24b2f9..6943378e9850f815b46f75a3dc6ce3c72116b8f8 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: fake-getaddrinfo.h,v 1.3 2003/02/05 23:50:43 djm Exp $ */
+/* $Id: fake-getaddrinfo.h,v 1.4 2003/02/24 01:35:09 djm Exp $ */
 
 #ifndef _FAKE_GETADDRINFO_H
 #define _FAKE_GETADDRINFO_H
@@ -37,7 +37,7 @@ int getaddrinfo(const char *hostname, const char *servname,
 #endif /* !HAVE_GETADDRINFO */
 
 #ifndef HAVE_GAI_STRERROR
-const char *gai_strerror(int ecode);
+char *gai_strerror(int ecode);
 #endif /* !HAVE_GAI_STRERROR */
 
 #ifndef HAVE_FREEADDRINFO