diff options
Diffstat (limited to 'src/sm_misc.c')
-rw-r--r-- | src/sm_misc.c | 61 |
1 files changed, 12 insertions, 49 deletions
diff --git a/src/sm_misc.c b/src/sm_misc.c index 30c2c2d..a08b198 100644 --- a/src/sm_misc.c +++ b/src/sm_misc.c @@ -42,10 +42,7 @@ in this Software without prior written authorization from The Open Group. */ void -SmFreeProperty (prop) - -SmProp *prop; - +SmFreeProperty(SmProp *prop) { if (prop) { @@ -73,11 +70,7 @@ SmProp *prop; */ void -SmFreeReasons (count, reasonMsgs) - -int count; -char **reasonMsgs; - +SmFreeReasons(int count, char **reasonMsgs) { if (reasonMsgs) { @@ -97,30 +90,21 @@ char **reasonMsgs; */ int -SmcProtocolVersion (smcConn) - -SmcConn smcConn; - +SmcProtocolVersion(SmcConn smcConn) { return (smcConn->proto_major_version); } int -SmcProtocolRevision (smcConn) - -SmcConn smcConn; - +SmcProtocolRevision(SmcConn smcConn) { return (smcConn->proto_minor_version); } char * -SmcVendor (smcConn) - -SmcConn smcConn; - +SmcVendor(SmcConn smcConn) { char *string = (char *) malloc (strlen (smcConn->vendor) + 1); @@ -131,10 +115,7 @@ SmcConn smcConn; char * -SmcRelease (smcConn) - -SmcConn smcConn; - +SmcRelease(SmcConn smcConn) { char *string = (char *) malloc (strlen (smcConn->release) + 1); @@ -145,10 +126,7 @@ SmcConn smcConn; char * -SmcClientID (smcConn) - -SmcConn smcConn; - +SmcClientID(SmcConn smcConn) { char *clientId = (char *) malloc (strlen (smcConn->client_id) + 1); @@ -159,10 +137,7 @@ SmcConn smcConn; IceConn -SmcGetIceConnection (smcConn) - -SmcConn smcConn; - +SmcGetIceConnection(SmcConn smcConn) { return (smcConn->iceConn); } @@ -174,30 +149,21 @@ SmcConn smcConn; */ int -SmsProtocolVersion (smsConn) - -SmsConn smsConn; - +SmsProtocolVersion(SmsConn smsConn) { return (smsConn->proto_major_version); } int -SmsProtocolRevision (smsConn) - -SmsConn smsConn; - +SmsProtocolRevision(SmsConn smsConn) { return (smsConn->proto_minor_version); } char * -SmsClientID (smsConn) - -SmsConn smsConn; - +SmsClientID(SmsConn smsConn) { char *clientId = (char *) malloc (strlen (smsConn->client_id) + 1); @@ -208,10 +174,7 @@ SmsConn smsConn; IceConn -SmsGetIceConnection (smsConn) - -SmsConn smsConn; - +SmsGetIceConnection(SmsConn smsConn) { return (smsConn->iceConn); } |