]> andersk Git - moira.git/blob - lib/mr_ops.c
3c82f5a1b3c8aaa6c4c6aa84c83310a5f6057169
[moira.git] / lib / mr_ops.c
1 /*
2  *      $Source$
3  *      $Author$
4  *      $Header$
5  *
6  *      Copyright (C) 1987 by the Massachusetts Institute of Technology
7  *      For copying and distribution information, please see the file
8  *      <mit-copyright.h>.
9  *      
10  *      This routine is part of the client library.  It handles
11  *      creating a connection to the sms server.
12  */
13
14 #ifndef lint
15 static char *rcsid_sms_do_update_c = "$Header$";
16 #endif lint
17
18 #include <mit-copyright.h>
19 #include "sms_private.h"
20
21 int sms_do_update()
22 {
23     int status;
24     sms_params param_st;
25     struct sms_params *params = NULL;
26     struct sms_params *reply = NULL;
27
28     CHECK_CONNECTED;
29     params = &param_st;
30     params->sms_version_no = sending_version_no;
31     params->sms_procno = SMS_DO_UPDATE;
32     params->sms_argc = 0;
33     params->sms_argl = NULL;
34     params->sms_argv = NULL;
35         
36     if ((status = sms_do_call(params, &reply)) == 0)
37         status = reply->sms_status;
38         
39     sms_destroy_reply(reply);
40
41     return status;
42 }
43
44 /*
45  * Local Variables:
46  * mode: c
47  * c-indent-level: 4
48  * c-continued-statement-offset: 4
49  * c-brace-offset: -4
50  * c-argdecl-indent: 4
51  * c-label-offset: -4
52  * End:
53  */
This page took 0.070183 seconds and 3 git commands to generate.