Use macro MAX() from sys/param.h.
MFC after: 2 weeks.
This commit is contained in:
parent
ee03c16e64
commit
5d6026c25e
@ -2986,7 +2986,7 @@ pnpgets(char *buf)
|
||||
connect_idle:
|
||||
|
||||
/* we may still have something in the buffer */
|
||||
return ((i > 0) ? i : 0);
|
||||
return (MAX(i, 0));
|
||||
}
|
||||
|
||||
static int
|
||||
|
Loading…
Reference in New Issue
Block a user