summaryrefslogtreecommitdiff
path: root/src/sm_error.c
diff options
context:
space:
mode:
authorPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2009-01-28 18:48:47 -0200
committerPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2009-01-28 18:48:47 -0200
commit896aeb5dd128fc8e489106fa7aaa5cee1e589106 (patch)
treedcf6ac4ad7a91fc2b668f79e98aa257593d869c2 /src/sm_error.c
parent1dcf5502137efe36d01b30169d4387438ad47be0 (diff)
Janitor: ansification, make distcheck, compiler warnings.
Diffstat (limited to 'src/sm_error.c')
-rw-r--r--src/sm_error.c40
1 files changed, 8 insertions, 32 deletions
diff --git a/src/sm_error.c b/src/sm_error.c
index 615cead..d5c15fc 100644
--- a/src/sm_error.c
+++ b/src/sm_error.c
@@ -45,18 +45,9 @@ in this Software without prior written authorization from The Open Group.
*/
void
-_SmcDefaultErrorHandler (smcConn, swap,
- offendingMinorOpcode, offendingSequence,
- errorClass, severity, values)
-
-SmcConn smcConn;
-Bool swap;
-int offendingMinorOpcode;
-unsigned long offendingSequence;
-int errorClass;
-int severity;
-SmPointer values;
-
+_SmcDefaultErrorHandler(SmcConn smcConn, Bool swap, int offendingMinorOpcode,
+ unsigned long offendingSequence, int errorClass,
+ int severity, SmPointer values)
{
char *pData = (char *) values;
const char *str;
@@ -177,18 +168,9 @@ SmPointer values;
*/
void
-_SmsDefaultErrorHandler (smsConn, swap,
- offendingMinorOpcode, offendingSequence,
- errorClass, severity, values)
-
-SmsConn smsConn;
-Bool swap;
-int offendingMinorOpcode;
-unsigned long offendingSequence;
-int errorClass;
-int severity;
-SmPointer values;
-
+_SmsDefaultErrorHandler(SmsConn smsConn, Bool swap, int offendingMinorOpcode,
+ unsigned long offendingSequence, int errorClass,
+ int severity, SmPointer values)
{
char *pData = (char *) values;
const char *str;
@@ -301,10 +283,7 @@ SmPointer values;
*/
SmcErrorHandler
-SmcSetErrorHandler (handler)
-
-SmcErrorHandler handler;
-
+SmcSetErrorHandler(SmcErrorHandler handler)
{
SmcErrorHandler oldHandler = _SmcErrorHandler;
@@ -325,10 +304,7 @@ SmcErrorHandler handler;
*/
SmsErrorHandler
-SmsSetErrorHandler (handler)
-
-SmsErrorHandler handler;
-
+SmsSetErrorHandler(SmsErrorHandler handler)
{
SmsErrorHandler oldHandler = _SmsErrorHandler;