Skip to content

Commit dd5bffa

Browse files
committed
Code cleanup
1 parent 593c468 commit dd5bffa

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/applets/tasks.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ static int _tasks_get_current_desktop(Tasks * tasks)
341341

342342
if(_tasks_get_window_property(tasks, GDK_WINDOW_XID(tasks->root),
343343
TASKS_ATOM__NET_CURRENT_DESKTOP, XA_CARDINAL,
344-
&cnt, (void*)&p) != 0)
344+
&cnt, (void *)&p) != 0)
345345
return -1;
346346
cnt = *p;
347347
XFree(p);
@@ -448,7 +448,7 @@ static void _tasks_do(Tasks * tasks)
448448
#endif
449449
if(_tasks_get_window_property(tasks, GDK_WINDOW_XID(tasks->root),
450450
TASKS_ATOM__NET_CLIENT_LIST,
451-
XA_WINDOW, &cnt, (void*)&windows) != 0)
451+
XA_WINDOW, &cnt, (void *)&windows) != 0)
452452
return;
453453
desktop = _tasks_get_current_desktop(tasks);
454454
for(i = 0; i < tasks->tasks_cnt; i++)
@@ -486,7 +486,7 @@ static char * _do_name_text(Tasks * tasks, Window window, Atom property)
486486
{
487487
char * ret = NULL;
488488

489-
if(_tasks_get_text_property(tasks, window, property, (void*)&ret) != 0)
489+
if(_tasks_get_text_property(tasks, window, property, (void *)&ret) != 0)
490490
return NULL;
491491
return ret;
492492
}
@@ -499,7 +499,7 @@ static char * _do_name_utf8(Tasks * tasks, Window window, Atom property)
499499

500500
if(_tasks_get_window_property(tasks, window, property,
501501
tasks->atom[TASKS_ATOM_UTF8_STRING], &cnt,
502-
(void*)&str) != 0)
502+
(void *)&str) != 0)
503503
return NULL;
504504
if(g_utf8_validate(str, cnt, NULL))
505505
ret = g_strndup(str, cnt);
@@ -522,7 +522,7 @@ static GdkPixbuf * _do_pixbuf(Tasks * tasks, Window window)
522522
unsigned long * best = NULL;
523523

524524
if(_tasks_get_window_property(tasks, window, TASKS_ATOM__NET_WM_ICON,
525-
XA_CARDINAL, &cnt, (void*)&buf) != 0)
525+
XA_CARDINAL, &cnt, (void *)&buf) != 0)
526526
return NULL;
527527
for(i = 0; i < cnt - 3; i += 2 + (width * height))
528528
{
@@ -585,7 +585,7 @@ static int _do_tasks_add(Tasks * tasks, int desktop, Window window,
585585

586586
#ifndef EMBEDDED
587587
if(_tasks_get_window_property(tasks, window, TASKS_ATOM__NET_WM_DESKTOP,
588-
XA_CARDINAL, &cnt, (void*)&l) == 0)
588+
XA_CARDINAL, &cnt, (void *)&l) == 0)
589589
{
590590
if(cnt == 1)
591591
cur = *l;
@@ -652,7 +652,7 @@ static int _do_typehint_normal(Tasks * tasks, Window window)
652652

653653
if(_tasks_get_window_property(tasks, window,
654654
TASKS_ATOM__NET_WM_WINDOW_TYPE, XA_ATOM, &cnt,
655-
(void*)&p) == 0)
655+
(void *)&p) == 0)
656656
{
657657
typehint = *p;
658658
XFree(p);
@@ -780,7 +780,7 @@ static gboolean _on_popup(gpointer data)
780780

781781
if(_tasks_get_window_property(task->tasks, task->window,
782782
TASKS_ATOM__NET_WM_ALLOWED_ACTIONS, XA_ATOM,
783-
&cnt, (void*)&buf) != 0)
783+
&cnt, (void *)&buf) != 0)
784784
return FALSE;
785785
for(i = 0; i < cnt; i++)
786786
{

0 commit comments

Comments
 (0)