diff options
author | jani@ua141d10.elisa.omakaista.fi <> | 2007-02-28 22:23:35 +0200 |
---|---|---|
committer | jani@ua141d10.elisa.omakaista.fi <> | 2007-02-28 22:23:35 +0200 |
commit | bcbc0031ebf001dd53e4322aeda67267c5ce3d03 (patch) | |
tree | 288ffce0d7e95cc7177686fa96f53632b56e4161 /cmd-line-utils | |
parent | 01ea1aa44d4d1ab0abb288f8b6b4627c19a052c9 (diff) | |
download | mariadb-git-bcbc0031ebf001dd53e4322aeda67267c5ce3d03.tar.gz |
Fixed compiler warnings.
Diffstat (limited to 'cmd-line-utils')
-rw-r--r-- | cmd-line-utils/readline/xmalloc.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/cmd-line-utils/readline/xmalloc.c b/cmd-line-utils/readline/xmalloc.c index 848a3563fa9..497936d3b43 100644 --- a/cmd-line-utils/readline/xmalloc.c +++ b/cmd-line-utils/readline/xmalloc.c @@ -39,8 +39,7 @@ /* **************************************************************** */ static void -memory_error_and_abort (fname) - char *fname; +memory_error_and_abort(const char *fname) { fprintf (stderr, "%s: out of virtual memory\n", fname); exit (2); @@ -57,7 +56,7 @@ xmalloc (bytes) temp = malloc (bytes); if (temp == 0) - memory_error_and_abort ((char*) "xmalloc"); + memory_error_and_abort("xmalloc"); return (temp); } @@ -71,7 +70,7 @@ xrealloc (pointer, bytes) temp = pointer ? realloc (pointer, bytes) : malloc (bytes); if (temp == 0) - memory_error_and_abort ((char*) "xrealloc"); + memory_error_and_abort("xrealloc"); return (temp); } |