summaryrefslogtreecommitdiff
path: root/lib/libSM/src/sm_error.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libSM/src/sm_error.c')
-rw-r--r--lib/libSM/src/sm_error.c44
1 files changed, 10 insertions, 34 deletions
diff --git a/lib/libSM/src/sm_error.c b/lib/libSM/src/sm_error.c
index 50a476e59..d5c15fc8b 100644
--- a/lib/libSM/src/sm_error.c
+++ b/lib/libSM/src/sm_error.c
@@ -45,21 +45,12 @@ 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;
- char *str;
+ const char *str;
switch (offendingMinorOpcode)
{
@@ -177,21 +168,12 @@ 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;
- char *str;
+ const char *str;
switch (offendingMinorOpcode)
{
@@ -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;