From f7b3bb94462ea5d51514cc32d2808b5b02cea24b Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 23 Sep 2023 10:56:27 -0700 Subject: Use C99 struct initializers Signed-off-by: Alan Coopersmith --- Mailbox.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Mailbox.c b/Mailbox.c index 02f28f0..209ba60 100644 --- a/Mailbox.c +++ b/Mailbox.c @@ -230,14 +230,14 @@ WidgetClass mailboxWidgetClass = (WidgetClass) &mailboxClassRec; static GC get_mailbox_gc (MailboxWidget w) { - XtGCMask valuemask; - XGCValues xgcv; - - valuemask = GCForeground | GCBackground | GCFunction | GCGraphicsExposures; - xgcv.foreground = w->mailbox.foreground_pixel; - xgcv.background = w->core.background_pixel; - xgcv.function = GXcopy; - xgcv.graphics_exposures = False; /* this is Bool, not Boolean */ + XtGCMask valuemask + = GCForeground | GCBackground | GCFunction | GCGraphicsExposures; + XGCValues xgcv = { + .foreground = w->mailbox.foreground_pixel, + .background = w->core.background_pixel, + .function = GXcopy, + .graphics_exposures = False /* this is Bool, not Boolean */ + }; return (XtGetGC ((Widget) w, valuemask, &xgcv)); } -- cgit v1.2.3