summaryrefslogtreecommitdiff
path: root/source/client
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-09-08 16:46:30 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:05:43 -0500
commitdf9cebcb97e20564359097148665bd519f31bc6f (patch)
tree15d8403a9be3cd932ce1e80112605ef2ea530ae8 /source/client
parentec1c68e3a640dbf5e514d9f2d1bb4890528b3fd0 (diff)
downloadsamba-df9cebcb97e20564359097148665bd519f31bc6f.tar.gz
r25035: Fix some more warnings, use service pointer rather than service number in more places.
Diffstat (limited to 'source/client')
-rw-r--r--source/client/cifsdd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/client/cifsdd.c b/source/client/cifsdd.c
index 2663184c837..8ecb0a628c8 100644
--- a/source/client/cifsdd.c
+++ b/source/client/cifsdd.c
@@ -103,7 +103,7 @@ static struct argdef args[] =
*/
};
-struct argdef * find_named_arg(const char * arg)
+static struct argdef * find_named_arg(const char * arg)
{
int i;
@@ -419,7 +419,7 @@ static int copy_files(void)
* could accumulate a remainder if ibs and obs don't match.
*/
iomax = 2 * MAX(ibs, obs);
- if ((iobuf = malloc(iomax)) == NULL) {
+ if ((iobuf = malloc_array_p(uint8_t, iomax)) == NULL) {
fprintf(stderr,
"%s: failed to allocate IO buffer of %llu bytes\n",
PROGNAME, (unsigned long long)iomax);