Commit a153f213 authored by SF Markus Elfring's avatar SF Markus Elfring Committed by Max Kellermann

permission: improve const-correctness

parent 294aaf7a
...@@ -111,7 +111,7 @@ void initPermissions(void) ...@@ -111,7 +111,7 @@ void initPermissions(void)
permission_default = parsePermissions(param->value); permission_default = parsePermissions(param->value);
} }
int getPermissionFromPassword(char *password, unsigned *permission) int getPermissionFromPassword(char const* password, unsigned* permission)
{ {
bool found; bool found;
gpointer key, value; gpointer key, value;
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
#define PERMISSION_ADMIN 8 #define PERMISSION_ADMIN 8
int getPermissionFromPassword(char *password, unsigned *permission); int getPermissionFromPassword(char const* password, unsigned* permission);
void finishPermissions(void); void finishPermissions(void);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment