diff options
author | Florin Coras <fcoras@cisco.com> | 2024-04-10 18:31:57 -0700 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2024-04-11 01:07:59 +0000 |
commit | d7f0daeccef4fd062e143e0030cf973e2cdf9ef9 (patch) | |
tree | 066b7a8a04784e78c9d288d871aaec0b6ec22ec8 /src/tools/g2/view1.c | |
parent | a1d20405b7965eaad93809c283c1a28b2f08f6f2 (diff) |
g2: fix gpointer cast complaints
Type: fix
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: Iadd6a4dd928002e764fc52343c14403620279aa7
Diffstat (limited to 'src/tools/g2/view1.c')
-rw-r--r-- | src/tools/g2/view1.c | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/src/tools/g2/view1.c b/src/tools/g2/view1.c index 3902c0a2dc1..7a6ae714e3f 100644 --- a/src/tools/g2/view1.c +++ b/src/tools/g2/view1.c @@ -2329,21 +2329,22 @@ out: static void view1_button_click_callback(GtkButton *item, gpointer data) { - enum view1_button_click click = (enum view1_button_click) data; - event_t *ep; - ulonglong event_incdec; - ulonglong current_width; - ulonglong zoom_delta; + enum view1_button_click click = (enum view1_button_click) (long int) data; + event_t *ep; + ulonglong event_incdec; + ulonglong current_width; + ulonglong zoom_delta; - current_width = s_v1->maxvistime - s_v1->minvistime; - event_incdec = (current_width) / 3; + current_width = s_v1->maxvistime - s_v1->minvistime; + event_incdec = (current_width) / 3; - if (event_incdec == 0LL) - event_incdec = 1; + if (event_incdec == 0LL) + event_incdec = 1; - zoom_delta = (s_v1->maxvistime - s_v1->minvistime) / 6; + zoom_delta = (s_v1->maxvistime - s_v1->minvistime) / 6; - switch(click) { + switch (click) + { case TOP_BUTTON: /* First PID to top of window */ s_v1->first_pid_index = 0; |