All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] script: fix variable initialization warning
@ 2015-06-25 15:29 Sami Kerola
  0 siblings, 0 replies; only message in thread
From: Sami Kerola @ 2015-06-25 15:29 UTC (permalink / raw)
  To: util-linux; +Cc: Sami Kerola

term-utils/script.c:402:19: warning: obsolete use of designated
initializer without '=' [-Wpedantic]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
---
 term-utils/script.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/term-utils/script.c b/term-utils/script.c
index 769b771..990b4a1 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 }
 	};
 
 
-- 
2.4.4


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-06-25 15:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-25 15:29 [PATCH] script: fix variable initialization warning Sami Kerola

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.