]>
Commit | Line | Data |
---|---|---|
1 | /* | |
2 | * $Source$ | |
3 | * $Author$ | |
4 | * $Header$ | |
5 | * | |
6 | * Copyright (C) 1987 by the Massachusetts Institute of Technology | |
7 | * | |
8 | * This routine is part of the client library. It handles | |
9 | * creating a connection to the sms server. | |
10 | */ | |
11 | ||
12 | #ifndef lint | |
13 | static char *rcsid_sms_do_update_c = "$Header$"; | |
14 | #endif lint | |
15 | ||
16 | #include "sms_private.h" | |
17 | ||
18 | int sms_do_update() | |
19 | { | |
20 | int status; | |
21 | sms_params param_st; | |
22 | struct sms_params *params = NULL; | |
23 | struct sms_params *reply = NULL; | |
24 | ||
25 | CHECK_CONNECTED; | |
26 | params = ¶m_st; | |
27 | params->sms_version_no = sending_version_no; | |
28 | params->sms_procno = SMS_DO_UPDATE; | |
29 | params->sms_argc = 0; | |
30 | params->sms_argl = NULL; | |
31 | params->sms_argv = NULL; | |
32 | ||
33 | if ((status = sms_do_call(params, &reply)) == 0) | |
34 | status = reply->sms_status; | |
35 | ||
36 | sms_destroy_reply(reply); | |
37 | ||
38 | return status; | |
39 | } | |
40 | ||
41 | /* | |
42 | * Local Variables: | |
43 | * mode: c | |
44 | * c-indent-level: 4 | |
45 | * c-continued-statement-offset: 4 | |
46 | * c-brace-offset: -4 | |
47 | * c-argdecl-indent: 4 | |
48 | * c-label-offset: -4 | |
49 | * End: | |
50 | */ |