diff options
author | Jeff Trawick <trawick@apache.org> | 2011-03-19 14:38:23 +0000 |
---|---|---|
committer | Jeff Trawick <trawick@apache.org> | 2011-03-19 14:38:23 +0000 |
commit | 80657f2ebe1d729d0ded1f3b6717169681c0f6a6 (patch) | |
tree | de5fdee130ec87fbc7a15889de092862933879cf /user | |
parent | f5fdf8934171d82877d7a8f2070aa5819956717f (diff) | |
download | apr-80657f2ebe1d729d0ded1f3b6717169681c0f6a6.tar.gz |
fix low-hanging gcc warnings, mostly for Windows
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1083183 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'user')
-rw-r--r-- | user/win32/groupinfo.c | 4 | ||||
-rw-r--r-- | user/win32/userinfo.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/user/win32/groupinfo.c b/user/win32/groupinfo.c index 7739a5428..585642f07 100644 --- a/user/win32/groupinfo.c +++ b/user/win32/groupinfo.c @@ -36,11 +36,11 @@ APR_DECLARE(apr_status_t) apr_gid_get(apr_gid_t *gid, DWORD rv; char *pos; - if (pos = strchr(groupname, '/')) { + if ((pos = strchr(groupname, '/'))) { domain = apr_pstrndup(p, groupname, pos - groupname); groupname = pos + 1; } - else if (pos = strchr(groupname, '\\')) { + else if ((pos = strchr(groupname, '\\'))) { domain = apr_pstrndup(p, groupname, pos - groupname); groupname = pos + 1; } diff --git a/user/win32/userinfo.c b/user/win32/userinfo.c index d09aaae83..f343d9582 100644 --- a/user/win32/userinfo.c +++ b/user/win32/userinfo.c @@ -30,7 +30,7 @@ * depends on IsValidSid(), which internally we better test long * before we get here! */ -void get_sid_string(char *buf, apr_size_t blen, apr_uid_t id) +static void get_sid_string(char *buf, apr_size_t blen, apr_uid_t id) { PSID_IDENTIFIER_AUTHORITY psia; DWORD nsa; |