chiark
/
gitweb
/
~ianmdlvl
/
sympathy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
*** empty log message ***
[sympathy.git]
/
apps
/
sympathyd.c
diff --git
a/apps/sympathyd.c
b/apps/sympathyd.c
index 49dd3120bc759b37522d2aca31aeabc9951adc0b..352b6a9f01bf34759e16c95e44fcc5a7fb0c1cd2 100644
(file)
--- a/
apps/sympathyd.c
+++ b/
apps/sympathyd.c
@@
-11,6
+11,9
@@
static char rcsid[] =
/*
* $Log$
/*
* $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 ***
*
* Revision 1.8 2008/02/14 10:34:30 james
* *** empty log message ***
*
@@
-174,7
+177,7
@@
log_line_changes (Context * ctx, int old, int new)
}
static char *
}
static char *
-do_line (char *ptr,int lines, int line)
+do_line (char *ptr,
int lines, int line)
{
char *lname;
{
char *lname;
@@
-207,8
+210,9
@@
check_status (Context * c, Clients * cs)
log_line_changes (c, old_status.lines, status.lines);
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++);
while (*t)
*(ptr++) = *(t++);
@@
-220,12
+224,13
@@
check_status (Context * c, Clients * cs)
ptr = do_line (ptr, status.lines, TIOCM_DSR);
ptr = do_line (ptr, status.lines, TIOCM_RI);
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 +=
if (status.lines & TIOCM_CD)
{
ptr +=
@@
-239,7
+244,9
@@
check_status (Context * c, Clients * cs)
status.cd_edge_sec % 60);
}
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;
*ptr = 0;