summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@sernet.de>2007-12-01 11:42:32 +0100
committerJeremy Allison <jra@samba.org>2007-12-01 10:43:11 -0800
commitf4e4df66e7b7a7ce053ef16a1d4e52e5733aafbf (patch)
tree14f5635191a311a3cfcd47eea9f7d67fa5030f64 /source3
parenta17a13f7ce27c316c4304ddb6e33de1df6be86ca (diff)
downloadsamba-f4e4df66e7b7a7ce053ef16a1d4e52e5733aafbf.tar.gz
samba-f4e4df66e7b7a7ce053ef16a1d4e52e5733aafbf.tar.bz2
samba-f4e4df66e7b7a7ce053ef16a1d4e52e5733aafbf.zip
Fix some C++ warnings
I think were are actually bugs. (This used to be commit 1be19f07889ae09f79030f1ff8f2cf5e9a3d9dc5)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpcclient/cmd_spoolss.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/source3/rpcclient/cmd_spoolss.c b/source3/rpcclient/cmd_spoolss.c
index 3bcf1bdcc9..92d8096505 100644
--- a/source3/rpcclient/cmd_spoolss.c
+++ b/source3/rpcclient/cmd_spoolss.c
@@ -2265,9 +2265,7 @@ static WERROR cmd_spoolss_enum_data( struct rpc_pipe_client *cli,
return WERR_NOMEM;
}
strupper_m(printername);
- printername = talloc_asprintf_append(mem_ctx,
- "%s",
- argv[1]);
+ printername = talloc_asprintf_append(printername, "%s", argv[1]);
if (!printername) {
return WERR_NOMEM;
}
@@ -2340,9 +2338,7 @@ static WERROR cmd_spoolss_enum_data_ex( struct rpc_pipe_client *cli,
return WERR_NOMEM;
}
strupper_m(printername);
- printername = talloc_asprintf_append(mem_ctx,
- "%s",
- argv[1]);
+ printername = talloc_asprintf_append(printername, "%s", argv[1]);
if (!printername) {
return WERR_NOMEM;
}
@@ -2417,9 +2413,7 @@ static WERROR cmd_spoolss_enum_printerkey( struct rpc_pipe_client *cli,
return WERR_NOMEM;
}
strupper_m(printername);
- printername = talloc_asprintf_append(mem_ctx,
- "%s",
- argv[1]);
+ printername = talloc_asprintf_append(printername, "%s", argv[1]);
if (!printername) {
return WERR_NOMEM;
}