summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
authortrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2011-03-19 12:17:02 +0000
committertrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2011-03-19 12:17:02 +0000
commit9bd0b817f04c4a2a80109a307f6f9615312be6a0 (patch)
tree9253eb02ee98593e0f37db5b03eeec4d228639ec /user
parent9b018eb4c9b42da796f56275e4f7bc2711334daa (diff)
downloadlibapr-9bd0b817f04c4a2a80109a307f6f9615312be6a0.tar.gz
clean up some low hanging gcc warnings on Win
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1083169 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'user')
-rw-r--r--user/win32/userinfo.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/user/win32/userinfo.c b/user/win32/userinfo.c
index 3d45df4f3..d09aaae83 100644
--- a/user/win32/userinfo.c
+++ b/user/win32/userinfo.c
@@ -45,10 +45,10 @@ void get_sid_string(char *buf, apr_size_t blen, apr_uid_t id)
+ ((DWORD)(psia->Value[3]) << 16) + ((DWORD)(psia->Value[2]) << 24);
sa = (DWORD)(psia->Value[1]) + ((DWORD)(psia->Value[0]) << 8);
if (sa) {
- slen = apr_snprintf(buf, blen, "S-%lu-0x%04x%08x",
+ slen = apr_snprintf(buf, blen, "S-%d-0x%04x%08x",
SID_REVISION, sa, nsa);
} else {
- slen = apr_snprintf(buf, blen, "S-%lu-%lu",
+ slen = apr_snprintf(buf, blen, "S-%d-%lu",
SID_REVISION, nsa);
}
@@ -211,11 +211,11 @@ APR_DECLARE(apr_status_t) apr_uid_get(apr_uid_t *uid, apr_gid_t *gid,
DWORD rv;
char *pos;
- if (pos = strchr(username, '/')) {
+ if ((pos = strchr(username, '/'))) {
domain = apr_pstrndup(p, username, pos - username);
username = pos + 1;
}
- else if (pos = strchr(username, '\\')) {
+ else if ((pos = strchr(username, '\\'))) {
domain = apr_pstrndup(p, username, pos - username);
username = pos + 1;
}