Tag: 29af9309dba25077f711f5f975977714bc43a0c3

net/9p/trans_fd.c: Fix unsigned return type

Author: Julia Lawall <julia@diku.dk> The function has an unsigned return type, but returns a negative constant to indicate an error condition. The result of calling the function is always stored in a variable of type (signed) int, and thus unsigned can be dropped from the return type. A sematic match that finds this problem is …

Continue reading