]> andersk Git - moira.git/commitdiff
Don't bother with the higher level ReadEntry/WriteEntry routines
authorprobe <probe>
Sun, 5 Jul 1992 13:18:24 +0000 (13:18 +0000)
committerprobe <probe>
Sun, 5 Jul 1992 13:18:24 +0000 (13:18 +0000)
since we only are toggling a couple bits...

afssync/sync.qc

index a35268a4fdd52a874b36d43d1e53b28062035915..0af616538d63ce6c6055b04c4bd38185dc9fcfe1 100644 (file)
@@ -140,13 +140,13 @@ do_groups()
            else
                hash_store(groups, lid, aid);
 
-           /* If this list is hidden, set the pts entry to be s---- */
+           /* Set modes on hidden lists (S----) */
            if (hide && (status==0 || status==PRIDEXIST)) {
                gpos = FindByID(0, aid);
-               status = pr_ReadEntry(0, 0, gpos, &gentry);
+               status = pr_Read(0, 0, gpos, &gentry, sizeof(gentry));
                if (!status) {
-                   gentry.flags = PRGRP|PRACCESS|PRP_STATUS_ANY;
-                   status = pr_WriteEntry(0, 0, gpos, &gentry);
+                   gentry.flags = htonl(PRGRP|PRACCESS|PRP_STATUS_ANY);
+                   status = pr_Write(0, 0, gpos, &gentry, sizeof(gentry));
                }
                if (status)
                    fprintf(stderr,
This page took 0.761435 seconds and 5 git commands to generate.