summaryrefslogtreecommitdiffstats
path: root/lib/cmdline.c
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy@goop.org>2008-07-25 01:27:46 +0200
committerIngo Molnar <mingo@elte.hu>2008-07-28 15:05:23 +0200
commitd974ae379a2fbe8948f01eabbc6b19c0a80f09bc (patch)
tree64deaab7470403d6cf77e73c35015b0ff602dd7d /lib/cmdline.c
parentMerge branch 'hotfixes' of git://git.linux-nfs.org/projects/trondmy/nfs-2.6 (diff)
downloadlinux-d974ae379a2fbe8948f01eabbc6b19c0a80f09bc.tar.xz
linux-d974ae379a2fbe8948f01eabbc6b19c0a80f09bc.zip
generic, memparse(): constify argument
memparse()'s first argument can be const, so it should be. Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> Cc: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'lib/cmdline.c')
-rw-r--r--lib/cmdline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cmdline.c b/lib/cmdline.c
index 5ba8a942a478..f5f3ad8b62ff 100644
--- a/lib/cmdline.c
+++ b/lib/cmdline.c
@@ -126,7 +126,7 @@ char *get_options(const char *str, int nints, int *ints)
* megabyte, or one gigabyte, respectively.
*/
-unsigned long long memparse(char *ptr, char **retptr)
+unsigned long long memparse(const char *ptr, char **retptr)
{
char *endptr; /* local pointer to end of parsed string */