* libmisc/console.c: Use a less disturbing construct for splint.
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
2009-04-25 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
|
* libmisc/console.c: Use a less disturbing construct for splint.
|
||||||
|
|
||||||
2009-04-25 Nicolas François <nicolas.francois@centraliens.net>
|
2009-04-25 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
* libmisc/limits.c: Parse the limits, umask, nice, maxlogin, file
|
* libmisc/limits.c: Parse the limits, umask, nice, maxlogin, file
|
||||||
|
@ -68,8 +68,8 @@ static bool is_listed (const char *cfgin, const char *tty, bool def)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
if (*cons != '/') {
|
if (*cons != '/') {
|
||||||
cons = strcpy (buf, cons);
|
strcpy (buf, cons);
|
||||||
while ((s = strtok (cons, ":")) != NULL) {
|
while ((s = strtok (buf, ":")) != NULL) {
|
||||||
if (strcmp (s, tty) == 0) {
|
if (strcmp (s, tty) == 0) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user