int c;
if (stat(fs, &stbuf) == -1) {
- (void)fflush(stdout);
+ fflush(stdout);
if (clreol)
cleareol();
perror(fs);
return ((FILE *)NULL);
}
if ((f = Fopen(fs, "r")) == NULL) {
- (void)fflush(stdout);
+ fflush(stdout);
perror(fs);
return ((FILE *)NULL);
}
case 0x457f: /* simple ELF detection */
printf(_("\n******** %s: Not a text file ********\n\n"),
fs);
- (void)fclose(f);
+ fclose(f);
return 1;
}
}
- (void)fseek(f, 0L, SEEK_SET); /* rewind() not necessary */
+ fseek(f, 0L, SEEK_SET); /* rewind() not necessary */
return 0;
}
if (win.ws_col != 0)
Mcol = win.ws_col;
}
- (void)signal(SIGWINCH, chgwinsz);
+ signal(SIGWINCH, chgwinsz);
}
#endif /* SIGWINCH */
}
/* Erase the current line entirely */
-void kill_line()
+void kill_line(void)
{
erasep(0);
if (!eraseln || dumb)
}
/* force clear to end of line */
-void cleareol()
+void cleareol(void)
{
my_putstring(eraseln);
}
-void clreos()
+void clreos(void)
{
my_putstring(EodClr);
}
}
/* Clear the screen */
-void doclear()
+void doclear(void)
{
if (Clear && !hard) {
my_putstring(Clear);
}
/* Go to home position */
-void home()
+void home(void)
{
my_putstring(Home);
}
}
/*----------------------------- Terminal I/O -------------------------------*/
-void initterm()
+void initterm(void)
{
int ret;
char *padstr;
}
}
-int readch()
+int readch(void)
{
unsigned char c;
siglongjmp(restore, 1);
}
-void set_tty()
+void set_tty(void)
{
otty.c_lflag &= ~(ICANON | ECHO);
otty.c_cc[VMIN] = 1; /* read at least 1 char */
return putc(c, stdout);
}
-void reset_tty()
+void reset_tty(void)
{
if (no_tty)
return;