Re: fork() Problem?

Alan Cox (alan@lxorguk.ukuu.org.uk)
Thu, 6 May 1999 03:45:11 +0100 (BST)


> No damnit! Look at the rules. Don't modify them to suit your
> opinions.

Read them

> Now, look what Lint has to say about this. The purpose of Lint
> is to check rules. It has no opinion. It just checks rules.

LCLint is mostly opinions. And rightfully so

> The condition test is an assignment expression. Probably, you mean to use ==

Note the "probably".

> xxx.c:13,5: Test expression for if not bool, type int: i = foo()
> Test expression type is not boolean or int. (-predboolint will suppress
> message)

See the C type casting rules

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/