]> andersk Git - moira.git/blame - lib/mr_ops.c
from new com_err library; also added empty define of "const" for
[moira.git] / lib / mr_ops.c
CommitLineData
de56407f 1/*
2 * $Source$
3 * $Author$
4 * $Header$
5 *
6 * Copyright (C) 1987 by the Massachusetts Institute of Technology
babbc197 7 * For copying and distribution information, please see the file
8 * <mit-copyright.h>.
de56407f 9 *
10 * This routine is part of the client library. It handles
babbc197 11 * creating a connection to the sms server.
de56407f 12 */
13
14#ifndef lint
15static char *rcsid_sms_do_update_c = "$Header$";
16#endif lint
17
babbc197 18#include <mit-copyright.h>
de56407f 19#include "sms_private.h"
20
21int 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;
89371417 30 params->sms_version_no = sending_version_no;
de56407f 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.150786 seconds and 5 git commands to generate.