summaryrefslogtreecommitdiff
path: root/lib/rpmatch.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2008-04-29 02:55:59 +0200
committerBruno Haible <bruno@clisp.org>2008-04-29 02:55:59 +0200
commitb52ae09f3a74d02e4f203c4b7703416d3b3b5461 (patch)
tree2c3af01d1cdda4496a4800c90b220ac37026bb0e /lib/rpmatch.c
parentcdf60d1ad704f2d17ca677af9dc093e7a81bd28e (diff)
downloadgnulib-b52ae09f3a74d02e4f203c4b7703416d3b3b5461.tar.gz
Declare rpmatch.
Diffstat (limited to 'lib/rpmatch.c')
-rw-r--r--lib/rpmatch.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/rpmatch.c b/lib/rpmatch.c
index 68c7442979..217e1710a2 100644
--- a/lib/rpmatch.c
+++ b/lib/rpmatch.c
@@ -19,9 +19,11 @@
#include <config.h>
+/* Specification. */
+#include <stdlib.h>
+
#include <stdbool.h>
#include <stddef.h>
-#include <stdlib.h>
#if ENABLE_NLS
# include <sys/types.h>
@@ -118,9 +120,6 @@ try (const char *response, const char *pattern, char **lastp, regex_t *re)
#endif
-/* Test a user response to a question.
- Return 1 if it is affirmative, 0 if it is negative, or -1 if not clear. */
-
int
rpmatch (const char *response)
{