1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 20:38:08 +01:00

Moving header functions to main.h

The functions of main.c should be included in main.h, not in funcs.h.
This patch adds the main.h file and moves the function prototypes to
this file.

The not needed "include funcs.h" are removed.
This commit is contained in:
Rodolfo García Peñas (kix)
2012-06-24 12:35:24 +02:00
committed by Carlos R. Mafra
parent ebbc5c48ba
commit 6bdc1318c1
15 changed files with 49 additions and 27 deletions

View File

@@ -485,7 +485,7 @@ void wAbort(Bool dumpCore)
exit(1);
}
void print_help()
static void print_help(void)
{
printf(_("Usage: %s [options]\n"), ProgName);
puts(_("The Window Maker window manager for the X window system"));
@@ -511,7 +511,7 @@ void print_help()
puts(_(" --help show this message"));
}
void check_defaults()
static void check_defaults(void)
{
char *path;
@@ -537,7 +537,7 @@ void check_defaults()
* files have changed, using linux kernel inotify mechanism
*/
static void inotifyWatchConfig()
static void inotifyWatchConfig(void)
{
char *watchPath = NULL;
inotifyFD = inotify_init(); /* Initialise an inotify instance */
@@ -563,7 +563,7 @@ static void inotifyWatchConfig()
}
#endif /* HAVE_INOTIFY */
static void execInitScript()
static void execInitScript(void)
{
char *file, *paths;
@@ -581,7 +581,7 @@ static void execInitScript()
}
}
void ExecExitScript()
void ExecExitScript(void)
{
char *file, *paths;