diff options
author | Stanislav Brabec | 2018-10-10 19:26:21 +0200 |
---|---|---|
committer | Karel Zak | 2018-10-11 12:09:25 +0200 |
commit | c5955394a8eddc42cb9d14b15ef533af5aed6bc5 (patch) | |
tree | ac7db4776a45fc59a7aa602338c1b7883366f48a /term-utils | |
parent | bash-completion: cleanup mount and umount --namespace (diff) | |
download | kernel-qcow2-util-linux-c5955394a8eddc42cb9d14b15ef533af5aed6bc5.tar.gz kernel-qcow2-util-linux-c5955394a8eddc42cb9d14b15ef533af5aed6bc5.tar.xz kernel-qcow2-util-linux-c5955394a8eddc42cb9d14b15ef533af5aed6bc5.zip |
agetty: rename variable changed to triggered
changed variable name is not correct. It does not say that network
interface changed its address. It just says that the netlink message
processing was triggered.
Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>
Diffstat (limited to 'term-utils')
-rw-r--r-- | term-utils/agetty.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/term-utils/agetty.c b/term-utils/agetty.c index 97dc45bd3..a0401dfae 100644 --- a/term-utils/agetty.c +++ b/term-utils/agetty.c @@ -1563,7 +1563,7 @@ static void open_netlink(void) } } -static int process_netlink_msg(int *changed) +static int process_netlink_msg(int *triggered) { char buf[4096]; struct sockaddr_nl snl; @@ -1603,7 +1603,7 @@ static int process_netlink_msg(int *changed) return 0; } - *changed = 1; + *triggered = 1; break; } @@ -1612,9 +1612,9 @@ static int process_netlink_msg(int *changed) static int process_netlink(void) { - int changed = 0; - while (process_netlink_msg(&changed)); - return changed; + int triggered = 0; + while (process_netlink_msg(&triggered)); + return triggered; } static int wait_for_term_input(int fd) |