]> andersk Git - moira.git/commitdiff
added server arg to sms_connect
authormar <mar>
Thu, 1 Dec 1988 14:47:38 +0000 (14:47 +0000)
committermar <mar>
Thu, 1 Dec 1988 14:47:38 +0000 (14:47 +0000)
clients/mailmaint/mailmaint.c
clients/moira/main.c
clients/moira/utils.c
clients/passwd/chpobox.c
dcm/dcm.c
reg_svr/reg_svr.c
server/mr_glue.c

index 802420ef625e116bfc4597ac873d38e3940f2613..18da4275f8017ad9ba4e64406d2de3b27539b305 100644 (file)
@@ -26,6 +26,8 @@ static char rcsid_mailmaint_c[] = "$Header$";
 #include <varargs.h>
 #include <com_err.h>
 #include <ctype.h>
+#include <sms.h>
+#include <sms_app.h>
 #include <mit-copyright.h>
 
 #define STARTCOL 0
@@ -128,7 +130,7 @@ main(argc, argv)
 
     printf("Connecting to database for %s...please hold on.\n", uname);
 
-    status = sms_connect();
+    status = sms_connect(SMS_SERVER);
     if (status) {
        (void) sprintf(buf, "\nConnection to SMS server failed");
        goto punt;
@@ -960,15 +962,3 @@ menu_err_hook(who, code, fmt, args)
     (void) putc('\0', &_strbuf);
     Put_message(buf);
 }
-
-
-/*
- * Local Variables:
- * mode: c
- * c-indent-level: 4
- * c-continued-statement-offset: 4
- * c-brace-offset: -4
- * c-argdecl-indent: 4
- * c-label-offset: -4
- * End: 
- */
index 1d46fd2e52616015bbc4cca708e9850c7ecb04f4..a32c5be7d1c156e164f5742c49b8b09e3ebfa4ee 100644 (file)
@@ -90,7 +90,7 @@ main(argc, argv)
       break;
     }
 
-    if ( status = sms_connect() ) 
+    if ( status = sms_connect(SMS_SERVER) ) 
        ErrorExit("\nConnection to SMS server failed", status);
 
     if ( status = sms_auth(program_name) ) 
index f459f8f0dfcb9d928e8bbc1729ec8b17535e1d46..202c294daa66f72654fd6b188a3d4675a9b9324b 100644 (file)
@@ -913,7 +913,7 @@ char *hint;
     status = sms_query(name, argc, argv, proc, hint);
     if (status != SMS_ABORTED && status != SMS_NOT_CONNECTED)
       return(status);
-    status = sms_connect();
+    status = sms_connect(SMS_SERVER);
     if (status) {
        com_err(whoami, status, " while re-connecting to server");
        return(SMS_ABORTED);
index c45ea9d892689c84071242fb7ab211e0b9726f8e..42db1d65a626c375c49e4ae987e0fb7b6d1b4fae 100644 (file)
@@ -122,7 +122,7 @@ main(argc, argv)
     }
     smsarg[0] = uname;
 
-    status = sms_connect();
+    status = sms_connect(SMS_SERVER);
     if (status) {
        com_err(whoami, status, " while connecting to SMS");
        exit(1);
index e953a24e5f4ad9402089d13f1fd95e72fe3fdbac..8dfca839b937fa78f32c3132b199606655f28873 100644 (file)
--- a/dcm/dcm.c
+++ b/dcm/dcm.c
@@ -69,7 +69,7 @@ char *argv[];
                exit(1);
        } 
 
-       if (status = sms_connect()) {
+       if (status = sms_connect("")) {
            com_err(whoami, status, " on sms_connect");
            leave("connect failed");
        }
index 910c5d36cb790c90881f81c4a692e4880fc5bc2a..80141ac7b1dd3f95f77ff30db0b56e8ff9e6f740 100644 (file)
@@ -57,7 +57,7 @@ main(argc,argv)
     init_ureg_err_tbl();
     
     /* Connect to the SMS server */
-    if ((status = sms_connect()) != SMS_SUCCESS) 
+    if ((status = sms_connect(SMS_SERVER)) != SMS_SUCCESS) 
     {
        com_err(whoami, status, " on connect");
        exit(1);
@@ -636,14 +636,3 @@ int set_password(message,retval)
     
     return status;
 }
-    
-/*
- * Local Variables:
- * mode: c
- * c-argdecl-indent: 2
- * c-brace-offset: -4
- * c-continued-statement-offset: 4
- * c-indent-level: 4
- * c-label-offset: -2
- * End:
- */
index 7155c9abd43756ad1d98e1b993bf767a871f04e5..0fb28aa14447359303c2d8743b45570d9792e750 100644 (file)
@@ -30,7 +30,8 @@ extern int krb_err_base, errno;
 extern char *malloc(), *whoami;
 extern time_t now;
 
-sms_connect()
+sms_connect(server)
+char *server;
 {
     register int status;
 
@@ -193,15 +194,3 @@ trigger_dcm(dummy0, dummy1, cl)
                return(SMS_SUCCESS);
        }
 }
-
-
-/*
- * Local Variables:
- * mode: c
- * c-indent-level: 4
- * c-continued-statement-offset: 4
- * c-brace-offset: -4
- * c-argdecl-indent: 4
- * c-label-offset: -4
- * End:
- */
This page took 0.190163 seconds and 5 git commands to generate.