]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - mood.c
make send_callback_request() and friends take a result handler.
[paraslash.git] / mood.c
diff --git a/mood.c b/mood.c
index 0f907cc0d6ac204669400f0825d736cabbd06042..2e562f4fefdd0a559aa37329ddafddfd2d861316 100644 (file)
--- a/mood.c
+++ b/mood.c
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2007 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2007-2008 Andre Noll <maan@systemlinux.org>
  *
  * Licensed under the GPL v2. For licencing details see COPYING.
  */
@@ -569,7 +569,7 @@ int mood_check_callback(__a_unused const struct osl_object *query,
        osl_rbtree_loop(moods_table, BLOBCOL_ID, &pb,
                check_mood);
        result->data = pb.buf;
-       result->size = pb.size;
+       result->size = pb.offset;
        return 1;
 }
 
@@ -1058,6 +1058,5 @@ int moods_event_handler(enum afs_events event, __a_unused struct para_buffer *pb
        default:
                return 1;
        }
-       return 1;
 }