aboutsummaryrefslogtreecommitdiff
path: root/src/client.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-17 23:53:28 +0200
committerMax Kellermann <max@duempel.org>2008-10-17 23:53:28 +0200
commit02a2a407c1d52c6635a551b7a64f1959781aba6d (patch)
tree6d1f796ee72162b8389b8dd6b3c0bc1aed542f55 /src/client.c
parentf8d5b7407160a2c9ec96026b7f7cbd2f4b40afdc (diff)
client: converted permissions to unsigned
client->permission is a bit set, and should be unsigned.
Diffstat (limited to 'src/client.c')
-rw-r--r--src/client.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client.c b/src/client.c
index b0cd8c8d..f3f5f44a 100644
--- a/src/client.c
+++ b/src/client.c
@@ -72,7 +72,7 @@ struct client {
size_t bufferPos;
int fd; /* file descriptor; -1 if expired */
- int permission;
+ unsigned permission;
/** the uid of the client process, or -1 if unknown */
int uid;
@@ -115,12 +115,12 @@ int client_get_uid(const struct client *client)
return client->uid;
}
-int client_get_permission(const struct client *client)
+unsigned client_get_permission(const struct client *client)
{
return client->permission;
}
-void client_set_permission(struct client *client, int permission)
+void client_set_permission(struct client *client, unsigned permission)
{
client->permission = permission;
}