Mon Oct 18 19:33:26 PDT 1999 Mandrake <mandrake@mandrake.net>
Warnings begone! Eterm/src/command.c still has two warnings but I don't know why I didn't get rid fo them. there are still warnings in Esetroot.c and in Etbg, but I'll fix those later. SVN revision: 866
This commit is contained in:
parent
85006099b6
commit
4c7dd8c3b9
|
@ -2587,3 +2587,11 @@ Tue Oct 12 16:24:20 PDT 1999 Michael Jennings <mej@eterm.org>
|
||||||
<namsh@lgic.co.kr>.
|
<namsh@lgic.co.kr>.
|
||||||
|
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
|
Mon Oct 18 19:33:26 PDT 1999 Mandrake <mandrake@mandrake.net>
|
||||||
|
|
||||||
|
Warnings begone!
|
||||||
|
Eterm/src/command.c still has two warnings but I don't know why
|
||||||
|
I didn't get rid fo them. there are still warnings in
|
||||||
|
Esetroot.c and in Etbg, but I'll fix those later.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
|
|
@ -56,6 +56,7 @@ action_t *action_list = NULL;
|
||||||
|
|
||||||
unsigned char
|
unsigned char
|
||||||
action_handle_string(event_t *ev, action_t *action) {
|
action_handle_string(event_t *ev, action_t *action) {
|
||||||
|
ev = NULL;
|
||||||
REQUIRE_RVAL(action->param.string != NULL, 0);
|
REQUIRE_RVAL(action->param.string != NULL, 0);
|
||||||
cmd_write(action->param.string, strlen(action->param.string));
|
cmd_write(action->param.string, strlen(action->param.string));
|
||||||
return 1;
|
return 1;
|
||||||
|
@ -63,6 +64,7 @@ action_handle_string(event_t *ev, action_t *action) {
|
||||||
|
|
||||||
unsigned char
|
unsigned char
|
||||||
action_handle_echo(event_t *ev, action_t *action) {
|
action_handle_echo(event_t *ev, action_t *action) {
|
||||||
|
ev = NULL;
|
||||||
REQUIRE_RVAL(action->param.string != NULL, 0);
|
REQUIRE_RVAL(action->param.string != NULL, 0);
|
||||||
tt_write(action->param.string, strlen(action->param.string));
|
tt_write(action->param.string, strlen(action->param.string));
|
||||||
return 1;
|
return 1;
|
||||||
|
|
|
@ -43,14 +43,8 @@ static const char cvs_ident[] = "$Id$";
|
||||||
/* System Headers */
|
/* System Headers */
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#ifdef HAVE_UNISTD_H
|
|
||||||
# include <unistd.h>
|
|
||||||
#endif
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#ifdef HAVE_UNISTD_H
|
|
||||||
# include <unistd.h>
|
|
||||||
#endif
|
|
||||||
#ifdef HAVE_FCNTL_H
|
#ifdef HAVE_FCNTL_H
|
||||||
# include <fcntl.h>
|
# include <fcntl.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -112,6 +106,8 @@ static const char cvs_ident[] = "$Id$";
|
||||||
#if defined(linux)
|
#if defined(linux)
|
||||||
# include <string.h> /* For strsep(). -vendu */
|
# include <string.h> /* For strsep(). -vendu */
|
||||||
#endif
|
#endif
|
||||||
|
/* I don't know why this doesn't seem to grab setresgid -mandrake */
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
/* Eterm-specific Headers */
|
/* Eterm-specific Headers */
|
||||||
#include "command.h"
|
#include "command.h"
|
||||||
|
@ -1216,6 +1212,7 @@ svr_get_pty(void)
|
||||||
#define PTYCHAR1 "pqrstuvwxyz"
|
#define PTYCHAR1 "pqrstuvwxyz"
|
||||||
#define PTYCHAR2 "0123456789abcdefghijklmnopqrstuvwxyz"
|
#define PTYCHAR2 "0123456789abcdefghijklmnopqrstuvwxyz"
|
||||||
|
|
||||||
|
inline int gen_get_pty(void);
|
||||||
inline int
|
inline int
|
||||||
gen_get_pty(void)
|
gen_get_pty(void)
|
||||||
{
|
{
|
||||||
|
@ -1654,6 +1651,7 @@ create_fontset(const char *font1, const char *font2)
|
||||||
strcat(fontname, font2);
|
strcat(fontname, font2);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
font2 = NULL;
|
||||||
fontname = MALLOC(strlen(font1) + sizeof(fs_base) + 1);
|
fontname = MALLOC(strlen(font1) + sizeof(fs_base) + 1);
|
||||||
if (fontname) {
|
if (fontname) {
|
||||||
strcpy(fontname, font1);
|
strcpy(fontname, font1);
|
||||||
|
|
1
src/e.c
1
src/e.c
|
@ -331,6 +331,7 @@ void
|
||||||
eterm_ipc_send(char *str)
|
eterm_ipc_send(char *str)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
str = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
char *
|
char *
|
||||||
|
|
|
@ -1284,7 +1284,9 @@ char *
|
||||||
builtin_version(char *param)
|
builtin_version(char *param)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
if(param) {
|
||||||
D_PARSE(("builtin_version(%s) called\n", param));
|
D_PARSE(("builtin_version(%s) called\n", param));
|
||||||
|
}
|
||||||
|
|
||||||
return (StrDup(VERSION));
|
return (StrDup(VERSION));
|
||||||
}
|
}
|
||||||
|
@ -1293,7 +1295,9 @@ char *
|
||||||
builtin_appname(char *param)
|
builtin_appname(char *param)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
if(param) {
|
||||||
D_PARSE(("builtin_appname(%s) called\n", param));
|
D_PARSE(("builtin_appname(%s) called\n", param));
|
||||||
|
}
|
||||||
|
|
||||||
return (StrDup(APL_NAME "-" VERSION));
|
return (StrDup(APL_NAME "-" VERSION));
|
||||||
}
|
}
|
||||||
|
|
19
src/screen.c
19
src/screen.c
|
@ -103,7 +103,7 @@ void
|
||||||
blank_line(text_t * et, rend_t * er, int width, rend_t efs)
|
blank_line(text_t * et, rend_t * er, int width, rend_t efs)
|
||||||
{
|
{
|
||||||
/* int i = width; */
|
/* int i = width; */
|
||||||
register int i = width;
|
register unsigned int i = width;
|
||||||
rend_t *r = er, fs = efs;
|
rend_t *r = er, fs = efs;
|
||||||
|
|
||||||
MEMSET(et, ' ', i);
|
MEMSET(et, ' ', i);
|
||||||
|
@ -1347,7 +1347,7 @@ void
|
||||||
scr_set_tab(int mode)
|
scr_set_tab(int mode)
|
||||||
{
|
{
|
||||||
if (mode < 0)
|
if (mode < 0)
|
||||||
MEMSET(tabs, 0, TermWin.ncol);
|
MEMSET(tabs, 0, (unsigned int) TermWin.ncol);
|
||||||
|
|
||||||
else if (screen.col < TermWin.ncol)
|
else if (screen.col < TermWin.ncol)
|
||||||
tabs[screen.col] = (mode ? 1 : 0);
|
tabs[screen.col] = (mode ? 1 : 0);
|
||||||
|
@ -1520,6 +1520,8 @@ set_multichar_encoding(const char *str)
|
||||||
multichar_decode = big5dummy;
|
multichar_decode = big5dummy;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
str = NULL;
|
||||||
#endif /* MULTI_CHARSET */
|
#endif /* MULTI_CHARSET */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1921,7 +1923,7 @@ scr_refresh(int type)
|
||||||
#endif
|
#endif
|
||||||
/* single stepping - `normal' mode */
|
/* single stepping - `normal' mode */
|
||||||
for (; ++col < ncols - 1;) {
|
for (; ++col < ncols - 1;) {
|
||||||
if (rend != srp[col])
|
if ((unsigned int)rend != srp[col])
|
||||||
break;
|
break;
|
||||||
if ((stp[col] == dtp[col]) && (srp[col] == drp[col]))
|
if ((stp[col] == dtp[col]) && (srp[col] == drp[col]))
|
||||||
break;
|
break;
|
||||||
|
@ -3066,17 +3068,26 @@ mouse_report(XButtonEvent * ev)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ------------------------------------------------------------------------- */
|
/* ------------------------------------------------------------------------- */
|
||||||
|
|
||||||
void
|
void
|
||||||
mouse_tracking(int report, int x, int y, int firstrow, int lastrow)
|
mouse_tracking(int report, int x, int y, int firstrow, int lastrow)
|
||||||
{
|
{
|
||||||
|
report = 0;
|
||||||
|
x = 0;
|
||||||
|
y = 0;
|
||||||
|
firstrow = 0;
|
||||||
|
lastrow = 0;
|
||||||
/* TODO */
|
/* TODO */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ------------------------------------------------------------------------- *
|
/* ------------------------------------------------------------------------- *
|
||||||
* DEBUG ROUTINES *
|
* DEBUG ROUTINES *
|
||||||
* ------------------------------------------------------------------------- */
|
* ------------------------------------------------------------------------- */
|
||||||
void
|
void
|
||||||
debug_PasteIt(unsigned char *data, int nitems)
|
debug_PasteIt(unsigned char *data, int nitems)
|
||||||
{
|
{
|
||||||
|
data = NULL;
|
||||||
|
nitems = 0;
|
||||||
/* TODO */
|
/* TODO */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue