- cleaned up makefiles

- polished code to avoid warnings
This commit is contained in:
zolliker
2005-03-08 11:12:23 +00:00
parent 350c410bdf
commit 94075f06c7
60 changed files with 189 additions and 286 deletions

View File

@@ -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, &regMask);
@@ -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);