WPrefs: Cleaned dangerous function prototype usage

- remove extern declaration in source file, use header instead

- add inclusion of header defining the functions of the file to
get the compiler to cross-check them

- marked static the functions that should not be visible ouside
their file
This commit is contained in:
Christophe CURIS
2013-05-12 01:01:20 +01:00
committed by Carlos R. Mafra
parent 549cefc47b
commit 5a65dbeb3d
9 changed files with 36 additions and 45 deletions
+2 -2
View File
@@ -2036,7 +2036,7 @@ static void prepareForClose(_Panel * panel)
WMSynchronizeUserDefaults(udb);
}
Panel *InitAppearance(WMScreen * scr, WMWindow * win)
Panel *InitAppearance(WMScreen *scr, WMWidget *parent)
{
_Panel *panel;
@@ -2046,7 +2046,7 @@ Panel *InitAppearance(WMScreen * scr, WMWindow * win)
panel->description = _("Background texture configuration for windows,\n" "menus and icons.");
panel->parent = win;
panel->parent = parent;
panel->callbacks.createWidgets = createPanel;
panel->callbacks.updateDomain = storeData;