summaryrefslogtreecommitdiffstats
path: root/term-utils/script.c
diff options
context:
space:
mode:
authorSami Kerola2015-06-25 17:28:19 +0200
committerKarel Zak2015-06-29 12:05:25 +0200
commit0664d41dba64ef8d80307f0e1ba04bca4ae72b0d (patch)
tree1c609910b1f3aa6505f77a10d994564f3d2c5547 /term-utils/script.c
parentbuild-sys: make autogen.sh more robust (diff)
downloadkernel-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.c6
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 }
};