From ae25e7746e87409aae554d390753c7a3e3717052 Mon Sep 17 00:00:00 2001 From: Herb Lewis Date: Fri, 15 Aug 2003 02:28:13 +0000 Subject: [PATCH] get rid of compiler warnings --- source/lib/util.c | 2 +- source/lib/util_sid.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/lib/util.c b/source/lib/util.c index efad01166ef..5f4fae9baa2 100644 --- a/source/lib/util.c +++ b/source/lib/util.c @@ -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; } diff --git a/source/lib/util_sid.c b/source/lib/util_sid.c index 00f14d7d26b..fbb393770d5 100644 --- a/source/lib/util_sid.c +++ b/source/lib/util_sid.c @@ -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) -- 2.11.4.GIT