X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=command.c;h=175b496ca799820bc5d891676f71970d31ba7cc9;hb=87f0cdf5e33cd50af029c6f79ca8fab943490209;hp=0baad5dcfca009ba0261c68e270073d72b277e06;hpb=780f2f681bccf82024bdb6da2e2cccaa0e084663;p=paraslash.git 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;