Use void for functions with no parameters
This commit is contained in:
parent
28b7776611
commit
def465d760
20
dwmblocks.c
20
dwmblocks.c
|
@ -23,14 +23,14 @@ _Static_assert(INTERVALs >= 0, "INTERVALs must be greater than or equal to 0");
|
||||||
_Static_assert(INTERVALn >= 0 && INTERVALn <= 999999999, "INTERVALn must be between 0 and 999999999");
|
_Static_assert(INTERVALn >= 0 && INTERVALn <= 999999999, "INTERVALn must be between 0 and 999999999");
|
||||||
|
|
||||||
static void buttonhandler(int sig, siginfo_t *info, void *ucontext);
|
static void buttonhandler(int sig, siginfo_t *info, void *ucontext);
|
||||||
static void cleanup();
|
static void cleanup(void);
|
||||||
static void setupsignals();
|
static void setupsignals(void);
|
||||||
static void sighandler(int sig, siginfo_t *si, void *ucontext);
|
static void sighandler(int sig, siginfo_t *si, void *ucontext);
|
||||||
static void statusloop();
|
static void statusloop(void);
|
||||||
static void termhandler(int sig);
|
static void termhandler(int sig);
|
||||||
static void updateblock(Block *block, int sigval);
|
static void updateblock(Block *block, int sigval);
|
||||||
static void updatestatus();
|
static void updatestatus(void);
|
||||||
static void writepid();
|
static void writepid(void);
|
||||||
|
|
||||||
static Block *dirtyblock;
|
static Block *dirtyblock;
|
||||||
static Display *dpy;
|
static Display *dpy;
|
||||||
|
@ -60,7 +60,7 @@ buttonhandler(int sig, siginfo_t *info, void *ucontext)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
cleanup()
|
cleanup(void)
|
||||||
{
|
{
|
||||||
unlink(LOCKFILE);
|
unlink(LOCKFILE);
|
||||||
XStoreName(dpy, DefaultRootWindow(dpy), "");
|
XStoreName(dpy, DefaultRootWindow(dpy), "");
|
||||||
|
@ -68,7 +68,7 @@ cleanup()
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
setupsignals()
|
setupsignals(void)
|
||||||
{
|
{
|
||||||
struct sigaction sa;
|
struct sigaction sa;
|
||||||
|
|
||||||
|
@ -137,7 +137,7 @@ sighandler(int sig, siginfo_t *info, void *ucontext)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
statusloop()
|
statusloop(void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
struct timespec t;
|
struct timespec t;
|
||||||
|
@ -243,7 +243,7 @@ updateblock(Block *block, int sigval)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
updatestatus()
|
updatestatus(void)
|
||||||
{
|
{
|
||||||
static char statustext[STATUSLENGTH];
|
static char statustext[STATUSLENGTH];
|
||||||
char *s = statustext;
|
char *s = statustext;
|
||||||
|
@ -265,7 +265,7 @@ updatestatus()
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
writepid()
|
writepid(void)
|
||||||
{
|
{
|
||||||
int fd;
|
int fd;
|
||||||
struct flock fl;
|
struct flock fl;
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#include <X11/Xlib.h>
|
#include <X11/Xlib.h>
|
||||||
|
|
||||||
int
|
int
|
||||||
main()
|
main(void)
|
||||||
{
|
{
|
||||||
char *name;
|
char *name;
|
||||||
Display *dpy;
|
Display *dpy;
|
||||||
|
|
Loading…
Reference in a new issue