g2: fix gpointer cast complaints

Type: fix

Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: Iadd6a4dd928002e764fc52343c14403620279aa7
This commit is contained in:
Florin Coras
2024-04-10 18:31:57 -07:00
committed by Florin Coras
parent a1d20405b7
commit d7f0daecce
2 changed files with 13 additions and 12 deletions

View File

@ -169,7 +169,7 @@ static void down_button(void)
static void button_click_callback(GtkButton *item, gpointer data)
{
int i;
enum button_click click = (enum button_click)data;
enum button_click click = (enum button_click) (long int) data;
switch (click) {
case ALL_BUTTON:

View File

@ -2329,7 +2329,7 @@ out:
static void view1_button_click_callback(GtkButton *item, gpointer data)
{
enum view1_button_click click = (enum view1_button_click) data;
enum view1_button_click click = (enum view1_button_click) (long int) data;
event_t *ep;
ulonglong event_incdec;
ulonglong current_width;
@ -2343,7 +2343,8 @@ static void view1_button_click_callback(GtkButton *item, gpointer data)
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;