diff options
author | Sami Kerola | 2015-06-25 17:28:19 +0200 |
---|---|---|
committer | Karel Zak | 2015-06-29 12:05:25 +0200 |
commit | 0664d41dba64ef8d80307f0e1ba04bca4ae72b0d (patch) | |
tree | 1c609910b1f3aa6505f77a10d994564f3d2c5547 /term-utils/script.c | |
parent | build-sys: make autogen.sh more robust (diff) | |
download | kernel-qcow2-util-linux-0664d41dba64ef8d80307f0e1ba04bca4ae72b0d.tar.gz kernel-qcow2-util-linux-0664d41dba64ef8d80307f0e1ba04bca4ae72b0d.tar.xz kernel-qcow2-util-linux-0664d41dba64ef8d80307f0e1ba04bca4ae72b0d.zip |
script: fix variable initialization warning
term-utils/script.c:402:19: warning: obsolete use of designated
initializer without '=' [-Wpedantic]
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'term-utils/script.c')
-rw-r--r-- | term-utils/script.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/term-utils/script.c b/term-utils/script.c index 769b771c0..990b4a1e7 100644 --- a/term-utils/script.c +++ b/term-utils/script.c @@ -399,9 +399,9 @@ static void do_io(struct script_control *ctl) }; struct pollfd pfd[] = { - [POLLFD_SIGNAL] { .fd = ctl->sigfd, .events = POLLIN | POLLERR | POLLHUP }, - [POLLFD_MASTER] { .fd = ctl->master, .events = POLLIN | POLLERR | POLLHUP }, - [POLLFD_STDIN] { .fd = STDIN_FILENO, .events = POLLIN | POLLERR | POLLHUP } + [POLLFD_SIGNAL] = { .fd = ctl->sigfd, .events = POLLIN | POLLERR | POLLHUP }, + [POLLFD_MASTER] = { .fd = ctl->master, .events = POLLIN | POLLERR | POLLHUP }, + [POLLFD_STDIN] = { .fd = STDIN_FILENO, .events = POLLIN | POLLERR | POLLHUP } }; |