summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
authorJeff Trawick <trawick@apache.org>2011-03-19 12:17:02 +0000
committerJeff Trawick <trawick@apache.org>2011-03-19 12:17:02 +0000
commit0b764570f9ded99d8d85cc033545ebe4da78064a (patch)
tree9253eb02ee98593e0f37db5b03eeec4d228639ec /user
parenteb478010e910121da6dbaa07b4e53b11776bba81 (diff)
downloadapr-0b764570f9ded99d8d85cc033545ebe4da78064a.tar.gz
clean up some low hanging gcc warnings on Win
git-svn-id: https://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;
}