rxgen-xdr-call-stifle-warnings-20030513
authorNathan Neulinger <nneul@umr.edu>
Tue, 13 May 2003 05:27:59 +0000 (05:27 +0000)
committerDerrick Brashear <shadow@dementia.org>
Tue, 13 May 2003 05:27:59 +0000 (05:27 +0000)
FIXES 1349

eliminate some warnings in generated code from rxgen

src/rxgen/rpc_cout.c

index 8ea14af..3caf4a1 100644 (file)
@@ -160,13 +160,13 @@ static void print_ifarg(char *arg)
 static void print_ifsizeof(char *prefix, char *type)
 {
        if (streq(type, "bool")) {
-               f_print(fout, ", sizeof(bool_t), xdr_bool");
+           f_print(fout, ", sizeof(bool_t), (xdrproc_t) xdr_bool");
        } else {
                f_print(fout, ", sizeof(");
                if (undefined(type) && prefix) {
                        f_print(fout, "%s ", prefix);
                }
-               f_print(fout, "%s), xdr_%s", type, type);
+               f_print(fout, "%s), (xdrproc_t) xdr_%s", type, type);
        }
 }