diff options
Diffstat (limited to 'gdb/gdbsupport')
-rw-r--r-- | gdb/gdbsupport/common-utils.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/gdbsupport/common-utils.h b/gdb/gdbsupport/common-utils.h index a5312cb..e96fc21 100644 --- a/gdb/gdbsupport/common-utils.h +++ b/gdb/gdbsupport/common-utils.h @@ -110,10 +110,9 @@ std::string extract_string_maybe_quoted (const char **arg); extern char *safe_strerror (int); -/* Return non-zero if the start of STRING matches PATTERN, zero - otherwise. */ +/* Return true if the start of STRING matches PATTERN, false otherwise. */ -static inline int +static inline bool startswith (const char *string, const char *pattern) { return strncmp (string, pattern, strlen (pattern)) == 0; |