]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-rxgen-server-prefix-prototypes-20051015
authorJeffrey Altman <jaltman@secure-endpoints.com>
Sat, 15 Oct 2005 22:52:31 +0000 (22:52 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Sat, 15 Oct 2005 22:52:31 +0000 (22:52 +0000)
When producing prototypes for server side functions, use the correct
prefix as specified in the input file.  If there is no prefix, then
do not output the prototypes as they will collide with the client
side stub prototypes.

(cherry picked from commit 1968364520eb35b16b676a0a4abe7461da8ba87d)

src/rxgen/rpc_hout.c

index a0abfa2d5ceda77470aecca2e612c16b0fa6ae15..3edf9f454d8e7320f6a76ba5ecc3abb52e7f42d4 100644 (file)
@@ -270,7 +270,8 @@ psprocdef(definition * defp)
        psproc1(defp, 0, "int", "", 0xFFFFFFFF);
     }
 
-    psproc1(defp, 1, "afs_int32", "S", 0xFFFFFFFF);
+    if (*ServerPrefix)
+       psproc1(defp, 1, "afs_int32", ServerPrefix, 0xFFFFFFFF);
 }