]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - mood.c
afs: Make afs callbacks more flexible.
[paraslash.git] / mood.c
diff --git a/mood.c b/mood.c
index fb988b2fa22e02c75dffa73a209fe393c115b0a9..639818c5b9f5626d05ddbe7399e49c9b1427600f 100644 (file)
--- a/mood.c
+++ b/mood.c
@@ -430,19 +430,18 @@ out:
 /**
  * Check all moods for syntax errors.
  *
- * \param fd The afs socket.
- * \param query Unused.
+ * \param aca Only ->pbout is used for diagnostics.
  *
  * \return Negative on fatal errors. Inconsistent mood definitions are not
  * considered an error.
  */
-int mood_check_callback(int fd, __a_unused const struct osl_object *query)
+int mood_check_callback(struct afs_callback_arg *aca)
 {
        int ret;
        struct para_buffer pb = {
                .max_size = shm_get_shmmax(),
                .private_data = &(struct afs_max_size_handler_data) {
-                       .fd = fd,
+                       .fd = aca->fd,
                        .band = SBD_OUTPUT
                },
                .max_size_handler = afs_max_size_handler