This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

fix strsignal decl


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

OK to apply? Only cygwin is impacted by this bug-fix.

2008-06-18 Eric Blake <ebb9@byu.net>

	Per Posix, strsignal returns non-const char*.
	* libc/include/string.h (strsignal): Fix return type.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkhYXmgACgkQ84KuGfSFAYBipQCfW+49zZ6U1unzQoixD6+uiKo1
tUAAn1hKEuVlWDT9CpOEkJC0wmRUNQkF
=XFPC
-----END PGP SIGNATURE-----
Index: libc/include/string.h
===================================================================
RCS file: /cvs/src/src/newlib/libc/include/string.h,v
retrieving revision 1.21
diff -u -p -b -r1.21 string.h
--- libc/include/string.h	12 Jan 2008 04:25:55 -0000	1.21
+++ libc/include/string.h	18 Jun 2008 01:00:26 -0000
@@ -76,7 +76,7 @@ char	*_EXFUN(strlwr,(char *));
 char	*_EXFUN(strupr,(char *));
 #ifdef __CYGWIN__
 #ifndef DEFS_H	/* Kludge to work around problem compiling in gdb */
-const char  *_EXFUN(strsignal, (int __signo));
+char  *_EXFUN(strsignal, (int __signo));
 #endif
 int     _EXFUN(strtosigno, (const char *__name));
 #endif

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]