/*
* $Log$
+ * Revision 1.9 2008/02/14 10:34:47 james
+ * *** empty log message ***
+ *
* Revision 1.8 2008/02/14 10:34:30 james
* *** empty log message ***
*
}
static char *
-do_line (char *ptr,int lines, int line)
+do_line (char *ptr, int lines, int line)
{
char *lname;
log_line_changes (c, old_status.lines, status.lines);
- t=c->t->name;
- if (!strncmp(t,"/dev/",5)) t+=5;
+ t = c->t->name;
+ if (!strncmp (t, "/dev/", 5))
+ t += 5;
while (*t)
*(ptr++) = *(t++);
ptr = do_line (ptr, status.lines, TIOCM_DSR);
ptr = do_line (ptr, status.lines, TIOCM_RI);
- if (status.crtscts) {
- t=", Flow";
- while (*t)
- *(ptr++) = *(t++);
+ if (status.crtscts)
+ {
+ t = ", Flow";
+ while (*t)
+ *(ptr++) = *(t++);
}
-
+
if (status.lines & TIOCM_CD)
{
ptr +=
status.cd_edge_sec % 60);
}
- ptr += sprintf (ptr, ", %d client%s", status.nclients,(status.nclients==1) ? "":"s");
+ ptr +=
+ sprintf (ptr, ", %d client%s", status.nclients,
+ (status.nclients == 1) ? "" : "s");
*ptr = 0;