summaryrefslogtreecommitdiff
path: root/include/os.h
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2009-04-06 11:05:17 -0400
committerAdam Jackson <ajax@redhat.com>2009-04-06 11:05:17 -0400
commit843166b033dc0544b9f3cf3c91fc3ae3650bda14 (patch)
tree9fcda0db5fd4d259726d53e3a3d8fce9ff486648 /include/os.h
parentaa6fbc2a3679896181610aee7ce2844d4322a5ce (diff)
os: signal handlers return void.
Diffstat (limited to 'include/os.h')
-rw-r--r--include/os.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/include/os.h b/include/os.h
index 7da31a5ad..bda7125a0 100644
--- a/include/os.h
+++ b/include/os.h
@@ -83,13 +83,6 @@ typedef struct _NewClientRec *NewClientPtr;
#include <stdio.h>
#include <stdarg.h>
-/* have to put $(SIGNAL_DEFINES) in DEFINES in Imakefile to get this right */
-#ifdef SIGNALRETURNSINT
-#define SIGVAL int
-#else
-#define SIGVAL void
-#endif
-
#ifdef DDXOSVERRORF
extern _X_EXPORT void (*OsVendorVErrorFProc)(const char *, va_list args);
#endif
@@ -202,9 +195,9 @@ extern _X_EXPORT void TimerFree(OsTimerPtr /* pTimer */);
extern _X_EXPORT void SetScreenSaverTimer(void);
extern _X_EXPORT void FreeScreenSaverTimer(void);
-extern _X_EXPORT SIGVAL AutoResetServer(int /*sig*/);
+extern _X_EXPORT void AutoResetServer(int /*sig*/);
-extern _X_EXPORT SIGVAL GiveUp(int /*sig*/);
+extern _X_EXPORT void GiveUp(int /*sig*/);
extern _X_EXPORT void UseMsg(void);
@@ -234,7 +227,7 @@ extern _X_EXPORT char *Xvprintf(const char *fmt, va_list va);
extern _X_EXPORT char *XNFprintf(const char *fmt, ...);
extern _X_EXPORT char *XNFvprintf(const char *fmt, va_list va);
-typedef SIGVAL (*OsSigHandlerPtr)(int /* sig */);
+typedef void (*OsSigHandlerPtr)(int /* sig */);
extern _X_EXPORT OsSigHandlerPtr OsSignal(int /* sig */, OsSigHandlerPtr /* handler */);