Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a type in configure.ac and conform to POSIX strsignal #24

Merged
merged 3 commits into from
Mar 22, 2016
Merged

Fix a type in configure.ac and conform to POSIX strsignal #24

merged 3 commits into from
Mar 22, 2016

Conversation

blueness
Copy link
Contributor

We fix to items here, as per the commit messages:

  1. configure.ac: fix typo. AC_CHECK_DECLS requires commas between declaration. The missing comma leads to HAVE_DECL_GETLINE_GETTIMEOFDAY which is non-sensical.

  2. lib/strsignal.c: strsignal() should be not be declared const. POSIX requires strsignal() to return a pointer to a char, not a pointer to a const char. (see man 3 strsignal) On uClibc, and possibly other libcs, this causes problems with the correct declaration in string.h.

AC_CHECK_DECLS requires commas between declaration.  The missing comma
leads to HAVE_DECL_GETLINE_GETTIMEOFDAY which is non-sensical.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
POSIX requires strsignal() to return a pointer to a char, not a pointer
to a const char. [1]  On uClibc, and possibly other libcs, this causes
problems with the correct declaration in string.h.

[1] man 3 strsignal

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
@brarcher
Copy link
Contributor

jenkins: ok to test

@brarcher
Copy link
Contributor

Thanks for the patches!

If you do not have an entry in the AUTHORS file, can you also add a change to that file and add a line for yourself?

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
@blueness
Copy link
Contributor Author

okay i've added myself to the AUTHORS file as a contributor

brarcher added a commit that referenced this pull request Mar 22, 2016
Fix a type in configure.ac and conform to POSIX strsignal
@brarcher brarcher merged commit ab9bddc into libcheck:master Mar 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants