applied Jukkas patch
6b25d06d
6 file(s) · +19 −19
| 80 | 80 | /* extern */ |
|
| 81 | 81 | ||
| 82 | 82 | void |
|
| 83 | - | drawall() { |
|
| 83 | + | drawall(void) { |
|
| 84 | 84 | Client *c; |
|
| 85 | 85 | ||
| 86 | 86 | for(c = clients; c; c = getnext(c->next)) |
|
| 89 | 89 | } |
|
| 90 | 90 | ||
| 91 | 91 | void |
|
| 92 | - | drawstatus() { |
|
| 92 | + | drawstatus(void) { |
|
| 93 | 93 | int i, x; |
|
| 94 | 94 | ||
| 95 | 95 | dc.x = dc.y = 0; |
|
| 121 | 121 | extern void unmanage(Client *c); /* destroy c */ |
|
| 122 | 122 | ||
| 123 | 123 | /* draw.c */ |
|
| 124 | - | extern void drawall(); /* draw all visible client titles and the bar */ |
|
| 125 | - | extern void drawstatus(); /* draw the bar */ |
|
| 124 | + | extern void drawall(void); /* draw all visible client titles and the bar */ |
|
| 125 | + | extern void drawstatus(void); /* draw the bar */ |
|
| 126 | 126 | extern void drawtitle(Client *c); /* draw title of c */ |
|
| 127 | 127 | extern unsigned long getcolor(const char *colstr); /* return color of colstr */ |
|
| 128 | 128 | extern void setfont(const char *fontstr); /* set the font for DC */ |
|
| 129 | 129 | extern unsigned int textw(const char *text); /* return the width of text in px*/ |
|
| 130 | 130 | ||
| 131 | 131 | /* event.c */ |
|
| 132 | - | extern void grabkeys(); /* grab all keys defined in config.h */ |
|
| 133 | - | extern void procevent(); /* process pending X events */ |
|
| 132 | + | extern void grabkeys(void); /* grab all keys defined in config.h */ |
|
| 133 | + | extern void procevent(void); /* process pending X events */ |
|
| 134 | 134 | ||
| 135 | 135 | /* main.c */ |
|
| 136 | 136 | extern int getproto(Window w); /* return protocol mask of WMProtocols property of w */ |
|
| 139 | 139 | extern int xerror(Display *dsply, XErrorEvent *ee); /* dwm's X error handler */ |
|
| 140 | 140 | ||
| 141 | 141 | /* tag.c */ |
|
| 142 | - | extern void initrregs(); /* initialize regexps of rules defined in config.h */ |
|
| 142 | + | extern void initrregs(void); /* initialize regexps of rules defined in config.h */ |
|
| 143 | 143 | extern Client *getnext(Client *c); /* returns next visible client */ |
|
| 144 | 144 | extern Client *getprev(Client *c); /* returns previous visible client */ |
|
| 145 | 145 | extern void settags(Client *c, Client *trans); /* sets tags of c */ |
|
| 160 | 160 | extern void focusprev(Arg *arg); /* focuses previous visible client, arg is ignored */ |
|
| 161 | 161 | extern Bool isvisible(Client *c); /* returns True if client is visible */ |
|
| 162 | 162 | extern void resizecol(Arg *arg); /* resizes the master width with arg's index value */ |
|
| 163 | - | extern void restack(); /* restores z layers of all clients */ |
|
| 163 | + | extern void restack(void); /* restores z layers of all clients */ |
|
| 164 | 164 | extern void togglemode(Arg *arg); /* toggles global arrange function (dotile/dofloat) */ |
|
| 165 | 165 | extern void toggleview(Arg *arg); /* toggles the tag with arg's index (in)visible */ |
|
| 166 | 166 | extern void view(Arg *arg); /* views the tag with arg's index */ |
|
| 170 | 170 | if(CLEANMASK(ev->state) != MODKEY) |
|
| 171 | 171 | return; |
|
| 172 | 172 | if(ev->button == Button1 && (arrange == dofloat || c->isfloat)) { |
|
| 173 | - | restack(c); |
|
| 173 | + | restack(); |
|
| 174 | 174 | movemouse(c); |
|
| 175 | 175 | } |
|
| 176 | 176 | else if(ev->button == Button2) |
|
| 177 | 177 | zoom(NULL); |
|
| 178 | 178 | else if(ev->button == Button3 && (arrange == dofloat || c->isfloat)) { |
|
| 179 | - | restack(c); |
|
| 179 | + | restack(); |
|
| 180 | 180 | resizemouse(c); |
|
| 181 | 181 | } |
|
| 182 | 182 | } |
|
| 388 | 388 | }; |
|
| 389 | 389 | ||
| 390 | 390 | void |
|
| 391 | - | grabkeys() { |
|
| 391 | + | grabkeys(void) { |
|
| 392 | 392 | static unsigned int len = sizeof(key) / sizeof(key[0]); |
|
| 393 | 393 | unsigned int i; |
|
| 394 | 394 | KeyCode code; |
|
| 408 | 408 | } |
|
| 409 | 409 | ||
| 410 | 410 | void |
|
| 411 | - | procevent() { |
|
| 411 | + | procevent(void) { |
|
| 412 | 412 | XEvent ev; |
|
| 413 | 413 | ||
| 414 | 414 | while(XPending(dpy)) { |
|
| 38 | 38 | static Bool otherwm, readin; |
|
| 39 | 39 | ||
| 40 | 40 | static void |
|
| 41 | - | cleanup() { |
|
| 41 | + | cleanup(void) { |
|
| 42 | 42 | close(STDIN_FILENO); |
|
| 43 | 43 | while(sel) { |
|
| 44 | 44 | resize(sel, True, TopLeft); |
|
| 58 | 58 | } |
|
| 59 | 59 | ||
| 60 | 60 | static void |
|
| 61 | - | scan() { |
|
| 61 | + | scan(void) { |
|
| 62 | 62 | unsigned int i, num; |
|
| 63 | 63 | Window *wins, d1, d2; |
|
| 64 | 64 | XWindowAttributes wa; |
|
| 79 | 79 | } |
|
| 80 | 80 | ||
| 81 | 81 | static void |
|
| 82 | - | setup() { |
|
| 82 | + | setup(void) { |
|
| 83 | 83 | int i, j; |
|
| 84 | 84 | unsigned int mask; |
|
| 85 | 85 | Window w; |
|
| 45 | 45 | } |
|
| 46 | 46 | ||
| 47 | 47 | void |
|
| 48 | - | initrregs() { |
|
| 48 | + | initrregs(void) { |
|
| 49 | 49 | unsigned int i; |
|
| 50 | 50 | regex_t *reg; |
|
| 51 | 51 |
| 7 | 7 | /* static */ |
|
| 8 | 8 | ||
| 9 | 9 | static Client * |
|
| 10 | - | minclient() { |
|
| 10 | + | minclient(void) { |
|
| 11 | 11 | Client *c, *min; |
|
| 12 | 12 | ||
| 13 | 13 | if((clients && clients->isfloat) || arrange == dofloat) |
|
| 25 | 25 | } |
|
| 26 | 26 | ||
| 27 | 27 | static void |
|
| 28 | - | reorder() { |
|
| 28 | + | reorder(void) { |
|
| 29 | 29 | Client *c, *newclients, *tail; |
|
| 30 | 30 | ||
| 31 | 31 | newclients = tail = NULL; |
|
| 225 | 225 | } |
|
| 226 | 226 | ||
| 227 | 227 | void |
|
| 228 | - | restack() { |
|
| 228 | + | restack(void) { |
|
| 229 | 229 | Client *c; |
|
| 230 | 230 | XEvent ev; |
|
| 231 | 231 | ||