Typecasting both parts of the comparison to u_int quiets compiler
warnings about signed/unsigned comparison and takes care of positive
and negative numbers for the file descriptor in a single comparison.
Obtained from: Juniper Netwowrks, Inc.
Differential D39593
Quiet compiler warnings for fget_noref and fdget_noref stevek on Apr 16 2023, 12:11 AM. Authored by Tags None Referenced Files
Subscribers
Details
Typecasting both parts of the comparison to u_int quiets compiler Obtained from: Juniper Netwowrks, Inc.
Diff Detail
Event TimelineComment Actions fdt_nfiles should probably become unsigned instead and whatever which does not already (u_int)fd should start doing it what compiler are you using? |