forked from mirrors/tftp-hpa-google
Add readline support in tftp client; some additional minor cleanups.
This commit is contained in:
parent
9570005ba2
commit
9753e234c6
5 changed files with 46 additions and 19 deletions
11
tftp/tftp.c
11
tftp/tftp.c
|
@ -65,19 +65,8 @@ static const char *rcsid UNUSED =
|
|||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "../config.h"
|
||||
#include "extern.h"
|
||||
|
||||
#ifdef HAVE_STRINGS_H
|
||||
#include <strings.h>
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_SIGSETJMP
|
||||
#define sigsetjmp(x,y) setjmp(x)
|
||||
#define siglongjmp(x,y) longjmp(x,y)
|
||||
#define sigjmp_buf jmp_buf
|
||||
#endif
|
||||
|
||||
extern struct sockaddr_in peeraddr; /* filled in by main */
|
||||
extern int f; /* the opened socket */
|
||||
extern int trace;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue