]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-ubik-call-sucks-20060703
authorDerrick Brashear <shadow@dementia.org>
Mon, 31 Jul 2006 18:42:20 +0000 (18:42 +0000)
committerDerrick Brashear <shadow@dementia.org>
Mon, 31 Jul 2006 18:42:20 +0000 (18:42 +0000)
ubik_Call's pseudo-varargs construction is hideous

put it out of its misery where possible

src/viced/host.c

index 6a146728223fb7470775e3d49bed98a407ddea91..0467361df88aa743bbe18236168b221fe25038a3 100644 (file)
@@ -391,7 +391,7 @@ hpr_GetHostCPS(afs_int32 host, prlist *CPS)
     }
 
     over = 0;
-    code = ubik_Call(PR_GetHostCPS, uclient, 0, host, CPS, &over);
+    code = ubik_PR_GetHostCPS(uclient, 0, host, CPS, &over);
     if (code != PRSUCCESS)
         return code;
     if (over) {
@@ -423,7 +423,7 @@ hpr_NameToId(namelist *names, idlist *ids)
 
     for (i = 0; i < names->namelist_len; i++)
         stolower(names->namelist_val[i]);
-    code = ubik_Call(PR_NameToID, uclient, 0, names, ids);
+    code = ubik_PR_NameToID(uclient, 0, names, ids);
     return code;
 #else
     return pr_NameToId(names, ids);
@@ -443,7 +443,7 @@ hpr_IdToName(idlist *ids, namelist *names)
         assert(pthread_setspecific(viced_uclient_key, (void *)uclient) == 0);
     }
 
-    code = ubik_Call(PR_IDToName, uclient, 0, ids, names);
+    code = ubik_PR_IDToName(uclient, 0, ids, names);
     return code;
 #else
     return pr_IdToName(ids, names);
@@ -465,7 +465,7 @@ hpr_GetCPS(afs_int32 id, prlist *CPS)
     }
 
     over = 0;
-    code = ubik_Call(PR_GetCPS, uclient, 0, id, CPS, &over);
+    code = ubik_PR_GetCPS(uclient, 0, id, CPS, &over);
     if (code != PRSUCCESS)
         return code;
     if (over) {