]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-rxgen-multi-prototypes-20080205
authorJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 5 Feb 2008 18:53:22 +0000 (18:53 +0000)
committerDerrick Brashear <shadow@dementia.org>
Tue, 5 Feb 2008 18:53:22 +0000 (18:53 +0000)
LICENSE MIT

When 'multi' is applied to an RPC definition, rxgen produced split prototypes,
Start and End, but failed to produce the prototype for the normal RPC call.

(cherry picked from commit 0088e5cb20c90a899aacb62cd13b57a7bbe13432)

src/rxgen/rpc_hout.c

index a5a85b29fd0fc70c2088cb9e6c2cf737faf3e68c..412af47a3df95d8fc84f432eff6e2d0c71e85aaa 100644 (file)
@@ -268,9 +268,9 @@ psprocdef(definition * defp)
                (1 << DEF_INPARAM) | (1 << DEF_INOUTPARAM));
        psproc1(defp, 1, "int", "End",
                (1 << DEF_OUTPARAM) | (1 << DEF_INOUTPARAM));
-    } else {
-       psproc1(defp, 0, "int", "", 0xFFFFFFFF);
-    }
+    } 
+    if (!(!multi_flag && split_flag))
+        psproc1(defp, 0, "int", "", 0xFFFFFFFF);
 
     if (uflag && !kflag)
        psproc1(defp, 2, "int", "ubik_", 0xFFFFFFFF);