/* Test of strsignal() function.
- Copyright (C) 2008 Free Software Foundation, Inc.
+ Copyright (C) 2008, 2009 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#endif
int
-main (int argc, char **argv)
+main (void)
{
- char *str;
+ /* Work around bug in cygwin 1.5.25 <string.h> by declaring str as
+ const char *, even though strsignal is supposed to return char *.
+ At any rate, this doesn't hurt, since POSIX 200x states that "The
+ string pointed to shall not be modified by the application." */
+ const char *str;
/* We try a couple of signals, since not all signals are supported
everywhere. Notwithstanding the #ifdef for neatness, SIGINT should in