]> git.sur5r.net Git - i3/i3/commit
Use (void) instead of () for functions without args (Thanks fernandotcl)
authorMichael Stapelberg <michael@stapelberg.de>
Sat, 31 Mar 2012 08:53:04 +0000 (10:53 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Sat, 31 Mar 2012 08:53:04 +0000 (10:53 +0200)
commit206b96202c6cae83a1867e3266edafa5a10e327f
tree61129b667cd552c0b2d0ca3fd92e85d21fc43cb9
parentd519659ea722cb1953e09f184fa16489770c3293
Use (void) instead of () for functions without args (Thanks fernandotcl)

See also:
http://article.gmane.org/gmane.linux.kernel/1268792

The C compiler will handle (void) as "no arguments" and () as "variadic
function" (equivalent to (...)) which might lead to subtle errors, such
as the one which was fixed with commit 0ea64ae4.
34 files changed:
include/config.h
include/ewmh.h
include/handlers.h
include/ipc.h
include/libi3.h
include/log.h
include/manage.h
include/randr.h
include/sighandler.h
include/tree.h
include/workspace.h
include/x.h
include/xcursor.h
include/xinerama.h
libi3/font.c
src/cfgparse.y
src/commands.c
src/commands_parser.c
src/config.c
src/ewmh.c
src/floating.c
src/handlers.c
src/ipc.c
src/log.c
src/main.c
src/manage.c
src/randr.c
src/sighandler.c
src/tree.c
src/util.c
src/workspace.c
src/x.c
src/xcursor.c
src/xinerama.c