]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - command.c
Merge branch 'refs/heads/t/web-diet'
[paraslash.git] / command.c
index 0baad5dcfca009ba0261c68e270073d72b277e06..175b496ca799820bc5d891676f71970d31ba7cc9 100644 (file)
--- 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;