]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - command.c
aft.c: Simplify load_afd().
[paraslash.git] / command.c
index 2ef9c5a87b54760ed38fc41e4f3b83391a4aa3f5..cb5cce16103f891e709dccce1dc39262d5ec0f84 100644 (file)
--- 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;