mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-03 20:34:14 +01:00
Added explicit 'void' to function that takes no argument
This is the correct way to tell that a function takes no arguments, because an empty parameter list tells the compiler that it is not yet defined, and is tolerated only for compatibility with very old C compilers for whom prototypes were not yet a defined language element.
This commit is contained in:
committed by
Carlos R. Mafra
parent
a3281b1e89
commit
a622197faa
@@ -96,7 +96,7 @@ typedef struct BackgroundTexture {
|
||||
int height;
|
||||
} BackgroundTexture;
|
||||
|
||||
void initXinerama()
|
||||
void initXinerama(void)
|
||||
{
|
||||
xineInfo.screens = NULL;
|
||||
xineInfo.count = 0;
|
||||
@@ -1121,13 +1121,13 @@ char *getFullPixmapPath(const char *file)
|
||||
return wstrdup(file);
|
||||
}
|
||||
|
||||
void wAbort()
|
||||
void wAbort(void)
|
||||
{
|
||||
wfatal("aborting");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
void print_help()
|
||||
void print_help(void)
|
||||
{
|
||||
printf("Usage: %s [options] [image]\n", __progname);
|
||||
puts("Sets the workspace background to the specified image or a texture and");
|
||||
|
||||
Reference in New Issue
Block a user