mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 23:10:58 +00:00
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:
parent
9823c57622
commit
279f9c54b4
@ -221,15 +221,15 @@ print_ifarg_len(char *objname, char *name)
|
|||||||
{
|
{
|
||||||
if (*objname == '&') {
|
if (*objname == '&') {
|
||||||
if (brief_flag) {
|
if (brief_flag) {
|
||||||
f_print(fout, "(u_int *)%s.len", objname);
|
f_print(fout, "%s.len", objname);
|
||||||
} else {
|
} else {
|
||||||
f_print(fout, "(u_int *)%s.%s_len", objname, name);
|
f_print(fout, "%s.%s_len", objname, name);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (brief_flag) {
|
if (brief_flag) {
|
||||||
f_print(fout, "(u_int *)&%s->len", objname);
|
f_print(fout, "&%s->len", objname);
|
||||||
} else {
|
} else {
|
||||||
f_print(fout, "(u_int *)&%s->%s_len", objname, name);
|
f_print(fout, "&%s->%s_len", objname, name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user