summaryrefslogtreecommitdiff
path: root/src/sm_manager.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_manager.c
parent1dcf5502137efe36d01b30169d4387438ad47be0 (diff)
Janitor: ansification, make distcheck, compiler warnings.
Diffstat (limited to 'src/sm_manager.c')
-rw-r--r--src/sm_manager.c75
1 files changed, 14 insertions, 61 deletions
diff --git a/src/sm_manager.c b/src/sm_manager.c
index 51ac548..6882145 100644
--- a/src/sm_manager.c
+++ b/src/sm_manager.c
@@ -42,9 +42,6 @@ in this Software without prior written authorization from The Open Group.
#undef shutdown
#endif
-extern IcePaAuthStatus _IcePaMagicCookie1Proc ();
-extern void _SmsProcessMessage ();
-
static Status
@@ -117,17 +114,9 @@ _SmsProtocolSetupProc (IceConn iceConn,
Status
-SmsInitialize (vendor, release, newClientProc, managerData,
- hostBasedAuthProc, errorLength, errorStringRet)
-
-char *vendor;
-char *release;
-SmsNewClientProc newClientProc;
-SmPointer managerData;
-IceHostBasedAuthProc hostBasedAuthProc;
-int errorLength;
-char *errorStringRet;
-
+SmsInitialize(char *vendor, char *release, SmsNewClientProc newClientProc,
+ SmPointer managerData, IceHostBasedAuthProc hostBasedAuthProc,
+ int errorLength, char *errorStringRet)
{
const char *auth_names[] = {"MIT-MAGIC-COOKIE-1"};
IcePaAuthProc auth_procs[] = {_IcePaMagicCookie1Proc};
@@ -186,10 +175,7 @@ char *errorStringRet;
char *
-SmsClientHostName (smsConn)
-
-SmsConn smsConn;
-
+SmsClientHostName(SmsConn smsConn)
{
return (IceGetPeerName (smsConn->iceConn));
}
@@ -197,11 +183,7 @@ SmsConn smsConn;
Status
-SmsRegisterClientReply (smsConn, clientId)
-
-SmsConn smsConn;
-char *clientId;
-
+SmsRegisterClientReply(SmsConn smsConn, char *clientId)
{
IceConn iceConn = smsConn->iceConn;
int extra;
@@ -231,14 +213,8 @@ char *clientId;
void
-SmsSaveYourself (smsConn, saveType, shutdown, interactStyle, fast)
-
-SmsConn smsConn;
-int saveType;
-Bool shutdown;
-int interactStyle;
-Bool fast;
-
+SmsSaveYourself(SmsConn smsConn, int saveType, Bool shutdown,
+ int interactStyle, Bool fast)
{
IceConn iceConn = smsConn->iceConn;
smSaveYourselfMsg *pMsg;
@@ -274,10 +250,7 @@ Bool fast;
void
-SmsSaveYourselfPhase2 (smsConn)
-
-SmsConn smsConn;
-
+SmsSaveYourselfPhase2(SmsConn smsConn)
{
IceConn iceConn = smsConn->iceConn;
@@ -288,10 +261,7 @@ SmsConn smsConn;
void
-SmsInteract (smsConn)
-
-SmsConn smsConn;
-
+SmsInteract(SmsConn smsConn)
{
IceConn iceConn = smsConn->iceConn;
@@ -304,10 +274,7 @@ SmsConn smsConn;
void
-SmsDie (smsConn)
-
-SmsConn smsConn;
-
+SmsDie(SmsConn smsConn)
{
IceConn iceConn = smsConn->iceConn;
@@ -318,10 +285,7 @@ SmsConn smsConn;
void
-SmsSaveComplete (smsConn)
-
-SmsConn smsConn;
-
+SmsSaveComplete(SmsConn smsConn)
{
IceConn iceConn = smsConn->iceConn;
@@ -332,10 +296,7 @@ SmsConn smsConn;
void
-SmsShutdownCancelled (smsConn)
-
-SmsConn smsConn;
-
+SmsShutdownCancelled(SmsConn smsConn)
{
IceConn iceConn = smsConn->iceConn;
@@ -348,12 +309,7 @@ SmsConn smsConn;
void
-SmsReturnProperties (smsConn, numProps, props)
-
-SmsConn smsConn;
-int numProps;
-SmProp **props;
-
+SmsReturnProperties(SmsConn smsConn, int numProps, SmProp **props)
{
IceConn iceConn = smsConn->iceConn;
int bytes;
@@ -378,10 +334,7 @@ SmProp **props;
void
-SmsCleanUp (smsConn)
-
-SmsConn smsConn;
-
+SmsCleanUp(SmsConn smsConn)
{
IceProtocolShutdown (smsConn->iceConn, _SmsOpcode);