]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - afs.c
afs.c: Rename ->handler of struct callback_query to ->cb.
[paraslash.git] / afs.c
diff --git a/afs.c b/afs.c
index 06b4132acde340d16500a321e756dac57221fc6c..c162cef44c65897335c8455e570fd92c1d11efc4 100644 (file)
--- a/afs.c
+++ b/afs.c
@@ -100,7 +100,7 @@ extern uint32_t afs_socket_cookie;
  */
 struct callback_query {
        /** The function to be called. */
-       afs_callback *handler;
+       afs_callback *cb;
        /** The number of bytes of the query */
        size_t query_size;
 };
@@ -191,7 +191,7 @@ int send_callback_request(afs_callback *f, struct osl_object *query,
        if (ret < 0)
                goto out;
        cq = query_shm;
-       cq->handler = f;
+       cq->cb = f;
        cq->query_size = query_shm_size - sizeof(*cq);
 
        if (query)
@@ -798,7 +798,7 @@ static int call_callback(int fd, int query_shmid)
                .fd = fd,
                .band = SBD_OUTPUT
        };
-       ret = cq->handler(&aca);
+       ret = cq->cb(&aca);
        ret2 = shm_detach(query_shm);
        if (ret2 < 0) {
                if (ret < 0) /* ignore (but log) detach error */