]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - user_list.c
server: Constify return value of lookup_user().
[paraslash.git] / user_list.c
index e48660299bd9fdff685782930ff7a876d9c061e5..cf53c0fa8e538d3cc9ffd66452beeaf998ffd70d 100644 (file)
@@ -127,9 +127,9 @@ void init_user_list(char *user_list_file)
  * \return A pointer to the corresponding user struct if the user was found, \p
  * NULL otherwise.
  */
-struct user *lookup_user(const char *name)
+const struct user *lookup_user(const char *name)
 {
-       struct user *u;
+       const struct user *u;
        list_for_each_entry(u, &user_list, node) {
                if (strcmp(u->name, name))
                        continue;