* file and use it to determine whether the tty ticket file is stale.
*/
static int
-tty_is_devpts(const char *tty)
+tty_is_devpts(tty)
+ const char *tty;
{
int retval = FALSE;
#ifdef __linux__
* Line buffer struct.
*/
struct lbuf {
- int (*output)(const char *);
+ int (*output)__P((const char *));
char *buf;
const char *continuation;
int indent;
if (nread == -1)
log_error(USE_ERRNO, "cannot read %s", pathbuf);
id = strtoul(buf, &ep, 36);
- if (buf == ep || id >= 2176782336U)
+ if (buf == ep || id >= (unsigned long)2176782336)
log_error(0, "invalid sequence number %s", pathbuf);
}
id++;
}
static int
-usage_out(const char *buf)
+usage_out(buf)
+ const char *buf;
{
return fputs(buf, stderr);
}
}
static int
-output(const char *buf)
+output(buf)
+ const char *buf;
{
- if (fputs(buf, stdout) == 0)
- return (int)strlen(buf);
- return 0;
+ return fputs(buf, stdout);
}
/*