diff options
author | SF Markus Elfring <elfring@users.sourceforge.net> | 2009-10-22 15:10:01 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-10-22 17:11:39 +0200 |
commit | a153f21315a03b4e703b383e95ac6110e8867efc (patch) | |
tree | baaa281c7ac98e02632787a76b2eeabccc428369 /src | |
parent | 294aaf7a9000dc45af50fe81d1d8a0b0a60c07ab (diff) | |
download | mpd-a153f21315a03b4e703b383e95ac6110e8867efc.tar.gz mpd-a153f21315a03b4e703b383e95ac6110e8867efc.tar.xz mpd-a153f21315a03b4e703b383e95ac6110e8867efc.zip |
permission: improve const-correctness
Diffstat (limited to 'src')
-rw-r--r-- | src/permission.c | 2 | ||||
-rw-r--r-- | src/permission.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/permission.c b/src/permission.c index 7df4e27fc..a65941771 100644 --- a/src/permission.c +++ b/src/permission.c @@ -111,7 +111,7 @@ void initPermissions(void) permission_default = parsePermissions(param->value); } -int getPermissionFromPassword(char *password, unsigned *permission) +int getPermissionFromPassword(char const* password, unsigned* permission) { bool found; gpointer key, value; diff --git a/src/permission.h b/src/permission.h index bad26aa3c..2a5d999ce 100644 --- a/src/permission.h +++ b/src/permission.h @@ -27,7 +27,7 @@ #define PERMISSION_ADMIN 8 -int getPermissionFromPassword(char *password, unsigned *permission); +int getPermissionFromPassword(char const* password, unsigned* permission); void finishPermissions(void); |