X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=command.c;h=175b496ca799820bc5d891676f71970d31ba7cc9;hp=0baad5dcfca009ba0261c68e270073d72b277e06;hb=bb3daee7cc11561159f168fe4f5427b53e54917f;hpb=780f2f681bccf82024bdb6da2e2cccaa0e084663 diff --git a/command.c b/command.c index 0baad5dc..175b496c 100644 --- a/command.c +++ b/command.c @@ -772,7 +772,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;