From a153f21315a03b4e703b383e95ac6110e8867efc Mon Sep 17 00:00:00 2001 From: SF Markus Elfring Date: Thu, 22 Oct 2009 15:10:01 +0200 Subject: [PATCH] permission: improve const-correctness --- src/permission.c | 2 +- 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);