summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-03-05 01:34:34 +0000
committerJeremy Allison <jra@samba.org>2003-03-05 01:34:34 +0000
commit211dd28a7aef367b7d3c99c249a8c036370328f7 (patch)
treeedead56539fc60f6b2f1f04658f4e0f6d7f19476 /source3
parentd45fe965efbac17433b0de25f5a896803f59f388 (diff)
downloadsamba-211dd28a7aef367b7d3c99c249a8c036370328f7.tar.gz
samba-211dd28a7aef367b7d3c99c249a8c036370328f7.tar.bz2
samba-211dd28a7aef367b7d3c99c249a8c036370328f7.zip
More const fixes.
Jeremy. (This used to be commit fa93763248f2043395e4cfc70b8afd81e28b2b75)
Diffstat (limited to 'source3')
-rw-r--r--source3/libads/krb5_setpw.c4
-rw-r--r--source3/registry/reg_printing.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/source3/libads/krb5_setpw.c b/source3/libads/krb5_setpw.c
index 9d8fb8d24c..ac7377cd2f 100644
--- a/source3/libads/krb5_setpw.c
+++ b/source3/libads/krb5_setpw.c
@@ -180,7 +180,7 @@ static krb5_error_code build_kpasswd_request(uint16 pversion,
static krb5_error_code krb5_setpw_result_code_string(krb5_context context,
int result_code,
- char **code_string)
+ const char **code_string)
{
switch (result_code) {
case KRB5_KPASSWD_MALFORMED:
@@ -318,7 +318,7 @@ static krb5_error_code parse_setpw_reply(krb5_context context,
if(res_code == KRB5_KPASSWD_SUCCESS)
return 0;
else {
- char *errstr;
+ const char *errstr;
krb5_setpw_result_code_string(context, res_code, &errstr);
DEBUG(1, ("Error changing password: %s\n", errstr));
diff --git a/source3/registry/reg_printing.c b/source3/registry/reg_printing.c
index 619ffc7ee7..50ac81dcbb 100644
--- a/source3/registry/reg_printing.c
+++ b/source3/registry/reg_printing.c
@@ -33,7 +33,7 @@
#define KEY_INDEX_FORMS 1
#define KEY_INDEX_PRINTER 2
-static char *top_level_keys[MAX_TOP_LEVEL_KEYS] = {
+static const char *top_level_keys[MAX_TOP_LEVEL_KEYS] = {
"Environments",
"Forms",
"Printers"