]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Kill off const warnings - add a pile of const to various places.
authorAndrew Bartlett <abartlet@samba.org>
Mon, 8 Jul 2002 02:14:57 +0000 (02:14 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 8 Jul 2002 02:14:57 +0000 (02:14 +0000)
source/lib/util_sock.c
source/libads/ldap_user.c
source/rpc_server/srv_pipe.c
source/smbd/mangle_map.c
source/smbd/posix_acls.c

index b16d34e1f421bcd63f1e8fe07ae2fecc1e17c660..4f1f2a1470ad8f25a0f874732f5836fbc93785a6 100644 (file)
@@ -93,7 +93,7 @@ static const smb_socket_option socket_options[] = {
 static void print_socket_options(int s)
 {
        int value, vlen = 4;
-       smb_socket_option *p = &socket_options[0];
+       const smb_socket_option *p = &socket_options[0];
 
        for (; p->name != NULL; p++) {
                if (getsockopt(s, p->level, p->option, (void *)&value, &vlen) == -1) {
index d0b6c2ca8cf1434bb3688dcab904bd94f9a536c1..b6e3d189c514e0146182558d496d9e922f44b9d4 100644 (file)
@@ -43,7 +43,7 @@ ADS_STATUS ads_add_user_acct(ADS_STRUCT *ads, const char *user,
        TALLOC_CTX *ctx;
        ADS_MODLIST mods;
        ADS_STATUS status;
-       char *upn, *new_dn, *name, *controlstr;
+       const char *upn, *new_dn, *name, *controlstr;
        const char *objectClass[] = {"top", "person", "organizationalPerson",
                                     "user", NULL};
 
index 157d7566072d92e045240fdaa99b949feb3f27a3..1d2c0c271363d577e8ee9bd8c6f3912cddb4d1af 100644 (file)
@@ -1151,7 +1151,7 @@ BOOL api_pipe_request(pipes_struct *p)
  ********************************************************************/
 
 BOOL api_rpcTNP(pipes_struct *p, char *rpc_name, 
-               struct api_struct *api_rpc_cmds)
+               const struct api_struct *api_rpc_cmds)
 {
        int fn_num;
        fstring name;
index 71d9340718140cbba2bea60dfd450fa70143c9fb..553e3d949de7086a9e2cb89fa7f9cfcc2ba926f6 100644 (file)
@@ -127,8 +127,8 @@ static char *map_filename( char *s,         /* This is null terminated */
  */
 static void mangled_map(char *s, const char *MangledMap)
 {
-       char *start=MangledMap;       /* Use this to search for mappings. */
-       char *end;                    /* Used to find the end of strings. */
+       const char *start=MangledMap;       /* Use this to search for mappings. */
+       const char *end;                    /* Used to find the end of strings. */
        char *match_string;
        pstring new_string;           /* Make up the result here. */
        char *np;                     /* Points into new_string. */
index 309dd0e71998eff1628748cbf69a0c8387f10260..85818d524a37f7e896650016879dca547fc0f154 100644 (file)
@@ -104,7 +104,7 @@ static void print_canon_ace(canon_ace *pace, int num)
        dbgtext( "canon_ace index %d. Type = %s ", num, pace->attr == ALLOW_ACE ? "allow" : "deny" );
        dbgtext( "SID = %s ", sid_to_string( str, &pace->trustee));
        if (pace->owner_type == UID_ACE) {
-               char *u_name = uidtoname(pace->unix_ug.uid);
+               const char *u_name = uidtoname(pace->unix_ug.uid);
                dbgtext( "uid %u (%s) ", (unsigned int)pace->unix_ug.uid, u_name);
        } else if (pace->owner_type == GID_ACE) {
                char *g_name = gidtoname(pace->unix_ug.gid);