X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=command.c;h=cb5cce16103f891e709dccce1dc39262d5ec0f84;hb=8fab57e794b36a0d964691acb0631e5d7de85c98;hp=2ef9c5a87b54760ed38fc41e4f3b83391a4aa3f5;hpb=f167629b3191c57a6b691cd2a6af04a45a74ccb0;p=paraslash.git diff --git a/command.c b/command.c index 2ef9c5a8..cb5cce16 100644 --- a/command.c +++ b/command.c @@ -780,7 +780,7 @@ static int com_tasks(struct command_context *cc) * check if perms are sufficient to exec a command having perms cmd_perms. * Returns 0 if perms are sufficient, -E_PERM otherwise. */ -static int check_perms(unsigned int perms, struct server_command *cmd_ptr) +static int check_perms(unsigned int perms, const struct server_command *cmd_ptr) { PARA_DEBUG_LOG("checking permissions\n"); return (cmd_ptr->perms & perms) < cmd_ptr->perms ? -E_PERM : 0;