mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 21:08:08 +01:00
Fix function prototype declaration
It is safer if the functions are declared with proper prototype specifications. This patch addresses some of the warnings with -Wstrict-prototype, like this: event.c:105: warning: function declaration isn't a prototype
This commit is contained in:
44
src/event.c
44
src/event.c
@@ -101,27 +101,27 @@ extern int wXkbEventBase;
|
|||||||
|
|
||||||
/************ Local stuff ***********/
|
/************ Local stuff ***********/
|
||||||
|
|
||||||
static void saveTimestamp(XEvent * event);
|
static void saveTimestamp(XEvent *event);
|
||||||
static void handleColormapNotify();
|
static void handleColormapNotify(XEvent *event);
|
||||||
static void handleMapNotify();
|
static void handleMapNotify(XEvent *event);
|
||||||
static void handleUnmapNotify();
|
static void handleUnmapNotify(XEvent *event);
|
||||||
static void handleButtonPress();
|
static void handleButtonPress(XEvent *event);
|
||||||
static void handleExpose();
|
static void handleExpose(XEvent *event);
|
||||||
static void handleDestroyNotify();
|
static void handleDestroyNotify(XEvent *event);
|
||||||
static void handleConfigureRequest();
|
static void handleConfigureRequest(XEvent *event);
|
||||||
static void handleMapRequest();
|
static void handleMapRequest(XEvent *event);
|
||||||
static void handlePropertyNotify();
|
static void handlePropertyNotify(XEvent *event);
|
||||||
static void handleEnterNotify();
|
static void handleEnterNotify(XEvent *event);
|
||||||
static void handleLeaveNotify();
|
static void handleLeaveNotify(XEvent *event);
|
||||||
static void handleExtensions();
|
static void handleExtensions(XEvent *event);
|
||||||
static void handleClientMessage();
|
static void handleClientMessage(XEvent *event);
|
||||||
static void handleKeyPress();
|
static void handleKeyPress(XEvent *event);
|
||||||
static void handleFocusIn();
|
static void handleFocusIn(XEvent *event);
|
||||||
static void handleMotionNotify();
|
static void handleMotionNotify(XEvent *event);
|
||||||
static void handleVisibilityNotify();
|
static void handleVisibilityNotify(XEvent *event);
|
||||||
|
|
||||||
#ifdef SHAPE
|
#ifdef SHAPE
|
||||||
static void handleShapeNotify();
|
static void handleShapeNotify(XEvent *event);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* called from the signal handler */
|
/* called from the signal handler */
|
||||||
@@ -302,7 +302,7 @@ void DispatchEvent(XEvent * event)
|
|||||||
#define BUFF_SIZE ((sizeof(struct inotify_event) + 16)*512)
|
#define BUFF_SIZE ((sizeof(struct inotify_event) + 16)*512)
|
||||||
void inotifyHandleEvents(int fd, int wd)
|
void inotifyHandleEvents(int fd, int wd)
|
||||||
{
|
{
|
||||||
extern void wDefaultsCheckDomains();
|
extern void wDefaultsCheckDomains(void);
|
||||||
ssize_t eventQLength, i = 0;
|
ssize_t eventQLength, i = 0;
|
||||||
char buff[BUFF_SIZE] = { 0 };
|
char buff[BUFF_SIZE] = { 0 };
|
||||||
/* Check config only once per read of the event queue */
|
/* Check config only once per read of the event queue */
|
||||||
@@ -359,7 +359,7 @@ void inotifyHandleEvents(int fd, int wd)
|
|||||||
* Calls inotifyGetEvents if defaults database changes.
|
* Calls inotifyGetEvents if defaults database changes.
|
||||||
*----------------------------------------------------------------------
|
*----------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
void EventLoop()
|
void EventLoop(void)
|
||||||
{
|
{
|
||||||
XEvent event;
|
XEvent event;
|
||||||
extern int inotifyFD;
|
extern int inotifyFD;
|
||||||
@@ -413,7 +413,7 @@ void EventLoop()
|
|||||||
*
|
*
|
||||||
*----------------------------------------------------------------------
|
*----------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
void ProcessPendingEvents()
|
void ProcessPendingEvents(void)
|
||||||
{
|
{
|
||||||
XEvent event;
|
XEvent event;
|
||||||
int count;
|
int count;
|
||||||
|
|||||||
Reference in New Issue
Block a user