]> andersk Git - moira.git/blame - update/inst_001.c
re-write to use krb_get_phost instead of local routine;
[moira.git] / update / inst_001.c
CommitLineData
de56407f 1/*
2 * $Source$
3 * $Header$
4 */
546bc43b 5/* (c) Copyright 1988 by the Massachusetts Institute of Technology. */
6/* For copying and distribution information, please see the file */
7/* <mit-copyright.h>. */
de56407f 8
9#ifndef lint
10static char *rcsid_inst_001_c = "$Header$";
11#endif lint
12
546bc43b 13#include <mit-copyright.h>
de56407f 14#include <stdio.h>
dd2e131e 15#include <gdb.h>
de56407f 16
17STRING instructions = { 0, 0 };
18extern CONNECTION conn;
19extern int have_instructions;
20extern int code;
21
22/*
23 * instruction sequence transmission:
24 * syntax:
25 * >>> (STRING) "inst_001"
26 * <<< (int)0
27 * >>> (STRING) instructions
28 * <<< (int)0
29 */
30
31inst_001(str)
32 char *str;
33{
34 if (send_ok())
35 lose("sending okay for inst_001");
36 code = receive_object(conn, (char *)&instructions, STRING_T);
37 if (code) {
38 report_error("reporting failure to receive instructions");
39 return;
40 }
41 have_instructions = 1;
42 if (send_ok())
43 lose("sending okay after instructions");
dd2e131e 44#ifdef DEBUG
45 printf("got instructions: %s\n", STRING_DATA(instructions));
46#endif
de56407f 47}
This page took 0.158869 seconds and 5 git commands to generate.