X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=attribute.c;h=8dcfa28fa6c5f77e4ae8f02cfc045ee0ec401bf6;hp=edf3baf51fa376708785eaa014f321eaff827aa4;hb=d5a9e8c8eefe170b6fb62be563c079c818bd3bf8;hpb=2830b9f881898aaec073d5ba19e33482e30190bd diff --git a/attribute.c b/attribute.c index edf3baf5..8dcfa28f 100644 --- a/attribute.c +++ b/attribute.c @@ -175,7 +175,7 @@ static void com_lsatt_callback(int fd, const struct osl_object *query) pmd.pm_flags |= PM_REVERSE_LOOP; for_each_matching_row(&pmd); if (laad.pb.offset) - pass_buffer_as_shm(laad.pb.buf, laad.pb.offset, &fd); + pass_buffer_as_shm(fd, laad.pb.buf, laad.pb.offset); free(laad.pb.buf); } @@ -359,7 +359,7 @@ out: if (ret < 0 && ret2 >= 0) para_printf(&pb, "%s: %s\n", p, para_strerror(-ret)); if (pb.offset) - pass_buffer_as_shm(pb.buf, pb.offset, &fd); + pass_buffer_as_shm(fd, pb.buf, pb.offset); free(pb.buf); } @@ -404,7 +404,7 @@ out: else afs_event(ATTRIBUTE_RENAME, &pb, NULL); if (pb.offset) - pass_buffer_as_shm(pb.buf, pb.offset, &fd); + pass_buffer_as_shm(fd, pb.buf, pb.offset); free(pb.buf); } @@ -478,7 +478,7 @@ static void com_rmatt_callback(int fd, const struct osl_object *query) else if (!raad.num_removed) ret2 = para_printf(&raad.pb, "no match -- nothing removed\n"); if (ret2 >= 0 && raad.pb.offset) - pass_buffer_as_shm(raad.pb.buf, raad.pb.offset, &fd); + pass_buffer_as_shm(fd, raad.pb.buf, raad.pb.offset); free(raad.pb.buf); }