gcc lint
This commit is contained in:
parent
46c28185ab
commit
0ac0a9f6f1
4 changed files with 19 additions and 8 deletions
|
@ -1,6 +1,18 @@
|
|||
Wed Sep 8 13:01:10 1993 K. Richard Pixley (rich@cygnus.com)
|
||||
|
||||
Gcc lint.
|
||||
* printcmd.c (do_examine): initialize val_type.
|
||||
(print_frame_args): initialize b.
|
||||
* ser-tcp.c (tcp_restore): comment out declaration. Appears
|
||||
unused.
|
||||
* ser-unix.c (hardwire_restore): comment out declaration. Appears
|
||||
unused.
|
||||
(hardwire_send_break): moved variable status into ifdef
|
||||
HAVE_SGTTY.
|
||||
(wait_for): moved variable numfds into ifdef HAVE_SGTTY.
|
||||
* serial.h: comment change only.
|
||||
* stabsread.c (rs6000_builtin_type): initialize rettype.
|
||||
(read_range_type): initialize nbits.
|
||||
* stack.c (print_frame_info): remove unused variable numargs.
|
||||
(parse_frame_specification): remove unused variables arg1, arg2,
|
||||
arg3.
|
||||
|
|
|
@ -39,7 +39,7 @@ static int wait_for PARAMS ((serial_t scb, int timeout));
|
|||
static int tcp_readchar PARAMS ((serial_t scb, int timeout));
|
||||
static int tcp_setbaudrate PARAMS ((serial_t scb, int rate));
|
||||
static int tcp_write PARAMS ((serial_t scb, const char *str, int len));
|
||||
static void tcp_restore PARAMS ((serial_t scb));
|
||||
/* FIXME: static void tcp_restore PARAMS ((serial_t scb)); */
|
||||
static void tcp_close PARAMS ((serial_t scb));
|
||||
static serial_ttystate tcp_get_tty_state PARAMS ((serial_t scb));
|
||||
static int tcp_set_tty_state PARAMS ((serial_t scb, serial_ttystate state));
|
||||
|
|
|
@ -82,7 +82,7 @@ static int hardwire_readchar PARAMS ((serial_t scb, int timeout));
|
|||
static int rate_to_code PARAMS ((int rate));
|
||||
static int hardwire_setbaudrate PARAMS ((serial_t scb, int rate));
|
||||
static int hardwire_write PARAMS ((serial_t scb, const char *str, int len));
|
||||
static void hardwire_restore PARAMS ((serial_t scb));
|
||||
/* FIXME: static void hardwire_restore PARAMS ((serial_t scb)); */
|
||||
static void hardwire_close PARAMS ((serial_t scb));
|
||||
static int get_tty_state PARAMS ((serial_t scb, struct hardwire_ttystate *state));
|
||||
static int set_tty_state PARAMS ((serial_t scb, struct hardwire_ttystate *state));
|
||||
|
@ -358,8 +358,6 @@ static int
|
|||
hardwire_send_break (scb)
|
||||
serial_t scb;
|
||||
{
|
||||
int status;
|
||||
|
||||
#ifdef HAVE_TERMIOS
|
||||
return tcsendbreak (scb->fd, 0);
|
||||
#endif
|
||||
|
@ -370,6 +368,7 @@ hardwire_send_break (scb)
|
|||
|
||||
#ifdef HAVE_SGTTY
|
||||
{
|
||||
int status;
|
||||
struct timeval timeout;
|
||||
|
||||
status = ioctl (scb->fd, TIOCSBRK, 0);
|
||||
|
@ -438,8 +437,6 @@ wait_for(scb, timeout)
|
|||
serial_t scb;
|
||||
int timeout;
|
||||
{
|
||||
int numfds;
|
||||
|
||||
#ifdef HAVE_SGTTY
|
||||
struct timeval tv;
|
||||
fd_set readfds;
|
||||
|
@ -453,6 +450,8 @@ wait_for(scb, timeout)
|
|||
|
||||
while (1)
|
||||
{
|
||||
int numfds;
|
||||
|
||||
if (timeout >= 0)
|
||||
numfds = select(scb->fd+1, &readfds, 0, 0, &tv);
|
||||
else
|
||||
|
|
|
@ -132,8 +132,8 @@ serial_t serial_fdopen PARAMS ((int fd));
|
|||
|
||||
#define SERIAL_SETBAUDRATE(SERIAL_T, RATE) ((SERIAL_T)->ops->setbaudrate((SERIAL_T), RATE))
|
||||
|
||||
/* Write LEN chars from STRING to the port SERIAL_T. Returns 0 for success,
|
||||
-1 for failure. */
|
||||
/* Write LEN chars from STRING to the port SERIAL_T. Returns 0 for
|
||||
success, non-zero for failure. */
|
||||
|
||||
#define SERIAL_WRITE(SERIAL_T, STRING, LEN) ((SERIAL_T)->ops->write((SERIAL_T), STRING, LEN))
|
||||
|
||||
|
|
Loading…
Reference in a new issue