summaryrefslogtreecommitdiffstats
path: root/source/popt
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-07-31 04:30:55 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:38:26 -0500
commit8ae7ed1f3cecbb5285313d17b5f9511e2e622f0b (patch)
tree829bca0b464910a1ddfcaaf6cddeff2bed091e1d /source/popt
parentbe9aaffdaccae06c8c035eaf31862e34b7cfbe38 (diff)
downloadsamba-8ae7ed1f3cecbb5285313d17b5f9511e2e622f0b.tar.gz
samba-8ae7ed1f3cecbb5285313d17b5f9511e2e622f0b.tar.xz
samba-8ae7ed1f3cecbb5285313d17b5f9511e2e622f0b.zip
r17334: Some C++ warnings
Diffstat (limited to 'source/popt')
-rw-r--r--source/popt/findme.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/popt/findme.c b/source/popt/findme.c
index a950e50018b..b28981ba1f4 100644
--- a/source/popt/findme.c
+++ b/source/popt/findme.c
@@ -22,8 +22,8 @@ const char * findProgramPath(const char * argv0) {
if (path == NULL) return NULL;
- start = pathbuf = alloca(strlen(path) + 1);
- buf = malloc(strlen(path) + strlen(argv0) + sizeof("/"));
+ start = pathbuf = (char *)alloca(strlen(path) + 1);
+ buf = (char *)malloc(strlen(path) + strlen(argv0) + sizeof("/"));
if (buf == NULL) return NULL; /* XXX can't happen */
strcpy(pathbuf, path);