summaryrefslogtreecommitdiff
path: root/gdb/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/utils.c')
-rw-r--r--gdb/utils.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/utils.c b/gdb/utils.c
index 3ce5814904b..4f9f4f05a2d 100644
--- a/gdb/utils.c
+++ b/gdb/utils.c
@@ -3269,11 +3269,11 @@ producer_is_gcc_ge_4 (const char *producer)
return minor;
}
-/* Returns true if the given PRODUCER string is GCC and sets the MAJOR
- and MINOR versions when not NULL. Returns false if the given PRODUCER
+/* Returns nonzero if the given PRODUCER string is GCC and sets the MAJOR
+ and MINOR versions when not NULL. Returns zero if the given PRODUCER
is NULL or it isn't GCC. */
-bool
+int
producer_is_gcc (const char *producer, int *major, int *minor)
{
const char *cs;
@@ -3299,11 +3299,11 @@ producer_is_gcc (const char *producer, int *major, int *minor)
if (*cs && isspace (*cs))
cs++;
if (sscanf (cs, "%d.%d", major, minor) == 2)
- return true;
+ return 1;
}
/* Not recognized as GCC. */
- return false;
+ return 0;
}
/* Helper for make_cleanup_free_char_ptr_vec. */