View | Details | Raw Unified | Return to bug 71667 | Differences between
and this patch

Collapse All | Expand All

(-)bootparamd.c (-15 / +8 lines)
Lines 44-55 Link Here
44
int checkhost(char *, char *, int);
44
int checkhost(char *, char *, int);
45
45
46
bp_whoami_res *
46
bp_whoami_res *
47
bootparamproc_whoami_1_svc(whoami, req)
47
bootparamproc_whoami_1_svc(bp_whoami_arg *whoami, struct svc_req *req)
48
bp_whoami_arg *whoami;
49
struct svc_req *req;
50
{
48
{
51
  in_addr_t haddr;
49
  in_addr_t haddr;
52
  static bp_whoami_res res;
50
  static bp_whoami_res res;
51
  (void) req;
53
  if (debug)
52
  if (debug)
54
    fprintf(stderr,"whoami got question for %d.%d.%d.%d\n",
53
    fprintf(stderr,"whoami got question for %d.%d.%d.%d\n",
55
	    255 &  whoami->client_address.bp_address_u.ip_addr.net,
54
	    255 &  whoami->client_address.bp_address_u.ip_addr.net,
Lines 110-122 Link Here
110
109
111
110
112
bp_getfile_res *
111
bp_getfile_res *
113
  bootparamproc_getfile_1_svc(getfile, req)
112
bootparamproc_getfile_1_svc(bp_getfile_arg *getfile, struct svc_req *req)
114
bp_getfile_arg *getfile;
115
struct svc_req *req;
116
{
113
{
117
  char *where, *index();
114
  char *where;
118
  static bp_getfile_res res;
115
  static bp_getfile_res res;
119
116
117
  (void) req;
118
120
  if (debug)
119
  if (debug)
121
    warnx("getfile got question for \"%s\" and file \"%s\"",
120
    warnx("getfile got question for \"%s\" and file \"%s\"",
122
	    getfile->client_name, getfile->file_id);
121
	    getfile->client_name, getfile->file_id);
Lines 184-193 Link Here
184
      empty answer for the file "dump")   */
183
      empty answer for the file "dump")   */
185
184
186
int
185
int
187
getthefile(askname,fileid,buffer,blen)
186
getthefile(char *askname,char *fileid,char *buffer,int blen)
188
char *askname;
189
char *fileid, *buffer;
190
int blen;
191
{
187
{
192
  FILE *bpf;
188
  FILE *bpf;
193
  char  *where;
189
  char  *where;
Lines 286-295 Link Here
286
   name for a host in the database */
282
   name for a host in the database */
287
283
288
int
284
int
289
checkhost(askname, hostname, len)
285
checkhost(char *askname, char *hostname, int len)
290
char *askname;
291
char *hostname;
292
int len;
293
{
286
{
294
  int ch, pch;
287
  int ch, pch;
295
  FILE *bpf;
288
  FILE *bpf;

Return to bug 71667