- cleaned up makefiles
- polished code to avoid warnings
This commit is contained in:
@@ -25,7 +25,6 @@
|
||||
static char esc_key='\0';
|
||||
|
||||
static fd_set regMask;
|
||||
static int lastFd=-1;
|
||||
|
||||
void term_reg_socket(int fd) {
|
||||
FD_SET(fd, ®Mask);
|
||||
@@ -151,7 +150,6 @@ static char filehead[256]="";
|
||||
FILE *term_open_pref(char *head, char *mode) {
|
||||
char buf[PATH_MAX], hom[PATH_MAX];
|
||||
char *cret, *home, usr[256];
|
||||
int i;
|
||||
|
||||
cret=getenv("USER");
|
||||
if (cret == NULL || *cret == '\0') return NULL;
|
||||
@@ -265,7 +263,7 @@ void term_off(void) {
|
||||
|
||||
int term_get_line(char *buf, int size, int *pos, char *prompt, fd_set *mask) {
|
||||
char key, *lin;
|
||||
int i,j,l,iret,buflen;
|
||||
int i,l,iret,buflen;
|
||||
char tmp[512];
|
||||
static char back[128]="";
|
||||
|
||||
@@ -320,7 +318,7 @@ int term_get_line(char *buf, int size, int *pos, char *prompt, fd_set *mask) {
|
||||
if (history[hist_end]!=NULL) {
|
||||
FREE(history[hist_end]); /* clear line at end of history */
|
||||
}
|
||||
history[hist_end]==NULL;
|
||||
history[hist_end] = NULL;
|
||||
}
|
||||
hist_pos=hist_end;
|
||||
term_save_hist(0);
|
||||
|
||||
Reference in New Issue
Block a user