get rid of compiler warnings
authorHerb Lewis <herb@samba.org>
Fri, 15 Aug 2003 02:28:13 +0000 (02:28 +0000)
committerHerb Lewis <herb@samba.org>
Fri, 15 Aug 2003 02:28:13 +0000 (02:28 +0000)
source/lib/util.c
source/lib/util_sid.c

index efad011..5f4fae9 100644 (file)
@@ -311,7 +311,7 @@ BOOL in_group(gid_t group, gid_t current_gid, int ngroups, const gid_t *groups)
 
 static const char *Atoic(const char *p, int *n, const char *c)
 {
-       if (!isdigit((const int)*p)) {
+       if (!isdigit((int)*p)) {
                DEBUG(5, ("Atoic: malformed number\n"));
                return NULL;
        }
index 00f14d7..fbb3937 100644 (file)
@@ -93,7 +93,7 @@ static const struct {
        {SID_NAME_UNKNOWN, "UNKNOWN"},
        {SID_NAME_COMPUTER, "Computer"},
 
-       {0, NULL}
+       {(enum SID_NAME_USE)0, NULL}
 };
 
 const char *sid_type_lookup(uint32 sid_type)