Remove automated casting in rxgen

We should let the compiler warn us when we attempt to convert types that
should not be converted.

Change-Id: Ie9f5f6ab5d5978bbe5e741b1a20bfb4d36fb314c
Reviewed-on: https://gerrit.openafs.org/12116
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
This commit is contained in:
Chas Williams 2015-11-23 14:19:38 -05:00 committed by Benjamin Kaduk
parent 9823c57622
commit 279f9c54b4

View File

@ -221,15 +221,15 @@ print_ifarg_len(char *objname, char *name)
{
if (*objname == '&') {
if (brief_flag) {
f_print(fout, "(u_int *)%s.len", objname);
f_print(fout, "%s.len", objname);
} else {
f_print(fout, "(u_int *)%s.%s_len", objname, name);
f_print(fout, "%s.%s_len", objname, name);
}
} else {
if (brief_flag) {
f_print(fout, "(u_int *)&%s->len", objname);
f_print(fout, "&%s->len", objname);
} else {
f_print(fout, "(u_int *)&%s->%s_len", objname, name);
f_print(fout, "&%s->%s_len", objname, name);
}
}
}