X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=main.c;h=3203014d8db280d1fd5241cedaca8d243f41559f;hb=1716159e05e712962c3a4c60091f6cd6b573461f;hp=03c8b1f68d78cfb733053bc8ee3f2413709d113f;hpb=32f7fe483538be60e529415c8cbd9cfbb4ab86d9;p=dmenu.git diff --git a/main.c b/main.c index 03c8b1f..3203014 100644 --- a/main.c +++ b/main.c @@ -42,8 +42,7 @@ static Window root; static Window win; static void -calcoffsets() -{ +calcoffsets(void) { unsigned int tw, w; if(!curr) @@ -71,8 +70,7 @@ calcoffsets() } static void -drawmenu() -{ +drawmenu(void) { Item *i; dc.x = 0; @@ -110,8 +108,7 @@ drawmenu() } static void -match(char *pattern) -{ +match(char *pattern) { unsigned int plen; Item *i, *j; @@ -151,8 +148,7 @@ match(char *pattern) } static void -kpress(XKeyEvent * e) -{ +kpress(XKeyEvent * e) { char buf[32]; int num, prev_nitem; unsigned int i, len; @@ -251,8 +247,7 @@ kpress(XKeyEvent * e) } static char * -readstdin() -{ +readstdin(void) { static char *maxname = NULL; char *p, buf[1024]; unsigned int len = 0, max = 0; @@ -289,8 +284,7 @@ Display *dpy; DC dc = {0}; int -main(int argc, char *argv[]) -{ +main(int argc, char *argv[]) { char *maxname; fd_set rd; struct timeval timeout;