Re: Strange piece of code

Alan Curry (pacman-kernel@cqc.com)
Tue, 21 Dec 1999 23:58:21 -0500 (EST)


Giovanni Picoli Tirloni writes the following:
>
>int
>ppp_init (struct device *dev)
>{
> static int first_time = 1; <== define to 1
^^^^^^
> int answer = 0;
>
> if (first_time) { <== check if is 1, why ? any special special reason?
> first_time = 0;

Please look up the meaning of "static" in your C book.

-
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/