diff options
author | Michael Adam <obnox@samba.org> | 2010-05-24 22:19:17 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2010-05-25 10:35:25 +0200 |
commit | 9ccf66379a946cef87d915c5f0f7758adb11a4d6 (patch) | |
tree | 3567c2325ce5526fa81c863c94efd54b22327cac /source3/services | |
parent | 70a81796fca29d3e924ab6a9396b1a4ab344a730 (diff) | |
download | samba-9ccf66379a946cef87d915c5f0f7758adb11a4d6.tar.gz |
s3:registry: adapt callers of regval_ctr_addvalue to uint8 * instead of char *
Diffstat (limited to 'source3/services')
-rw-r--r-- | source3/services/services_db.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/services/services_db.c b/source3/services/services_db.c index e0568d6574..35c88524e4 100644 --- a/source3/services/services_db.c +++ b/source3/services/services_db.c @@ -261,13 +261,13 @@ static void fill_service_values(const char *name, struct regval_ctr *values) I'm just storing them here for cosmetic purposes */ dword = SVCCTL_AUTO_START; - regval_ctr_addvalue( values, "Start", REG_DWORD, (char*)&dword, sizeof(uint32)); + regval_ctr_addvalue( values, "Start", REG_DWORD, (uint8 *)&dword, sizeof(uint32)); dword = SERVICE_TYPE_WIN32_OWN_PROCESS; - regval_ctr_addvalue( values, "Type", REG_DWORD, (char*)&dword, sizeof(uint32)); + regval_ctr_addvalue( values, "Type", REG_DWORD, (uint8 *)&dword, sizeof(uint32)); dword = SVCCTL_SVC_ERROR_NORMAL; - regval_ctr_addvalue( values, "ErrorControl", REG_DWORD, (char*)&dword, sizeof(uint32)); + regval_ctr_addvalue( values, "ErrorControl", REG_DWORD, (uint8 *)&dword, sizeof(uint32)); /* everything runs as LocalSystem */ @@ -426,7 +426,7 @@ static void add_new_svc_name(struct registry_key_handle *key_parent, } regval_ctr_addvalue(values, "Security", REG_BINARY, - (const char *)sd_blob.data, sd_blob.length); + sd_blob.data, sd_blob.length); store_reg_values( key_secdesc, values ); TALLOC_FREE( key_secdesc ); @@ -599,7 +599,7 @@ bool svcctl_set_secdesc( TALLOC_CTX *ctx, const char *name, struct security_desc return False; } - regval_ctr_addvalue( values, "Security", REG_BINARY, (const char *)blob.data, blob.length); + regval_ctr_addvalue( values, "Security", REG_BINARY, blob.data, blob.length); ret = store_reg_values( key, values ); /* cleanup */ |