summaryrefslogtreecommitdiff
path: root/source3/popt/findme.c
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
commit1cf1e648feed823244731eef5f56bd34e15cb045 (patch)
tree63f7d989ccf7c05004f3fe7793f3c77d2053c20b /source3/popt/findme.c
parent02eea79624c85fb5ce6c3ffefe2d27e40c5ff97f (diff)
downloadsamba-1cf1e648feed823244731eef5f56bd34e15cb045.tar.gz
samba-1cf1e648feed823244731eef5f56bd34e15cb045.tar.bz2
samba-1cf1e648feed823244731eef5f56bd34e15cb045.zip
r17334: Some C++ warnings
(This used to be commit 8ae7ed1f3cecbb5285313d17b5f9511e2e622f0b)
Diffstat (limited to 'source3/popt/findme.c')
-rw-r--r--source3/popt/findme.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/popt/findme.c b/source3/popt/findme.c
index a950e50018..b28981ba1f 100644
--- a/source3/popt/findme.c
+++ b/source3/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);