aboutsummaryrefslogtreecommitdiff
path: root/include/libiberty.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1995-02-09 19:21:01 +0000
committerIan Lance Taylor <ian@airs.com>1995-02-09 19:21:01 +0000
commitdf8d50821648d7585ca1b402f7e0855f440a5bac (patch)
tree90de7d4bd05cfcf421a03fddc4e37bb83d115690 /include/libiberty.h
parent506af7a79c56669ddd04f9da63c2d48d048615a6 (diff)
downloadgdb-df8d50821648d7585ca1b402f7e0855f440a5bac.zip
gdb-df8d50821648d7585ca1b402f7e0855f440a5bac.tar.gz
gdb-df8d50821648d7585ca1b402f7e0855f440a5bac.tar.bz2
* libiberty.h (basename): Change argument to be const.
Diffstat (limited to 'include/libiberty.h')
-rw-r--r--include/libiberty.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/libiberty.h b/include/libiberty.h
index bc2e67c..7e4fdaa 100644
--- a/include/libiberty.h
+++ b/include/libiberty.h
@@ -23,7 +23,7 @@ extern void freeargv PARAMS ((char **));
/* Return the last component of a path name. */
-extern char *basename PARAMS ((char *));
+extern char *basename PARAMS ((const char *));
/* Concatenate an arbitrary number of strings, up to (char *) NULL.
Allocates memory using xmalloc. */
@@ -117,7 +117,7 @@ extern PTR xrealloc ();
#define _hex_bad 99
extern char _hex_value[_hex_array_size];
extern void hex_init PARAMS ((void));
-#define hex_p(c) (hex_value (c) == _hex_bad)
+#define hex_p(c) (hex_value (c) != _hex_bad)
/* If you change this, note well: Some code relies on side effects in
the argument being performed exactly once. */
#define hex_value(c) (_hex_value[(unsigned char) (c)])