diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2023-09-23 10:56:27 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2023-09-23 10:56:27 -0700 |
commit | f7b3bb94462ea5d51514cc32d2808b5b02cea24b (patch) | |
tree | 7efb043088a9ec63aaaba118a9b44c2afe8dcefb | |
parent | 2c513f4ab38187dc7268f898e5db87eab3983715 (diff) |
Use C99 struct initializers
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | Mailbox.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -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)); } |