summaryrefslogtreecommitdiff
path: root/source3/services
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2015-12-03 15:24:16 +0100
committerJeremy Allison <jra@samba.org>2016-09-28 00:04:19 +0200
commit8f39b2fd243c5475fdd22526bec3f65c3e96959d (patch)
tree4b18636808f4c9fc1df6f4355256637183d9e499 /source3/services
parent5cec72f36c73abbacb77a7468094bc8edb40f7c0 (diff)
downloadsamba-8f39b2fd243c5475fdd22526bec3f65c3e96959d.tar.gz
werror: replace WERR_NOMEM with WERR_NOT_ENOUGH_MEMORY in source3/services/
Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/services')
-rw-r--r--source3/services/svc_rcinit.c6
-rw-r--r--source3/services/svc_winreg_glue.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/source3/services/svc_rcinit.c b/source3/services/svc_rcinit.c
index 199e5f12ce1..a47931d63b6 100644
--- a/source3/services/svc_rcinit.c
+++ b/source3/services/svc_rcinit.c
@@ -30,7 +30,7 @@ static WERROR rcinit_stop( const char *service, struct SERVICE_STATUS *status )
if (asprintf(&command, "%s/%s/%s stop",
get_dyn_MODULESDIR(), SVCCTL_SCRIPT_DIR, service) < 0) {
- return WERR_NOMEM;
+ return WERR_NOT_ENOUGH_MEMORY;
}
/* we've already performed the access check when the service was opened */
@@ -64,7 +64,7 @@ static WERROR rcinit_start( const char *service )
if (asprintf(&command, "%s/%s/%s start",
get_dyn_MODULESDIR(), SVCCTL_SCRIPT_DIR, service) < 0) {
- return WERR_NOMEM;
+ return WERR_NOT_ENOUGH_MEMORY;
}
/* we've already performed the access check when the service was opened */
@@ -91,7 +91,7 @@ static WERROR rcinit_status( const char *service, struct SERVICE_STATUS *status
if (asprintf(&command, "%s/%s/%s status",
get_dyn_MODULESDIR(), SVCCTL_SCRIPT_DIR, service) < 0) {
- return WERR_NOMEM;
+ return WERR_NOT_ENOUGH_MEMORY;
}
/* we've already performed the access check when the service was opened */
diff --git a/source3/services/svc_winreg_glue.c b/source3/services/svc_winreg_glue.c
index 8e8fa21edc7..7d7871d8884 100644
--- a/source3/services/svc_winreg_glue.c
+++ b/source3/services/svc_winreg_glue.c
@@ -203,7 +203,7 @@ bool svcctl_set_secdesc(struct messaging_context *msg_ctx,
wkey.name = talloc_asprintf(tmp_ctx, "%s\\Security", key);
if (wkey.name == NULL) {
- result = WERR_NOMEM;
+ result = WERR_NOT_ENOUGH_MEMORY;
goto done;
}