aboutsummaryrefslogtreecommitdiffstats
path: root/src/ring.c
diff options
context:
space:
mode:
authorjames <>2008-03-03 06:04:42 +0000
committerjames <>2008-03-03 06:04:42 +0000
commitf2c620137fa5290d913373e5579a97f0fee25fa3 (patch)
treedfbbe3562ae58e8f540a92654cb4f4d7323d59d7 /src/ring.c
parent800cb4bdfb56dcd606216788fb023fcc23fb69bf (diff)
downloadsympathy-f2c620137fa5290d913373e5579a97f0fee25fa3.tar.gz
sympathy-f2c620137fa5290d913373e5579a97f0fee25fa3.tar.bz2
sympathy-f2c620137fa5290d913373e5579a97f0fee25fa3.zip
*** empty log message ***
Diffstat (limited to 'src/ring.c')
-rw-r--r--src/ring.c29
1 files changed, 17 insertions, 12 deletions
diff --git a/src/ring.c b/src/ring.c
index b5bcf76..9e04fd3 100644
--- a/src/ring.c
+++ b/src/ring.c
@@ -10,6 +10,9 @@ static char rcsid[] = "$Id$";
/*
* $Log$
+ * Revision 1.6 2008/03/03 06:04:42 james
+ * *** empty log message ***
+ *
* Revision 1.5 2008/03/02 10:37:56 james
* *** empty log message ***
*
@@ -34,14 +37,15 @@ ring_read (Ring * r, void *b, int n)
{
int red = 0;
- while (n--) {
+ while (n--)
+ {
- if (!ring_read_one (r, b))
- break;
+ if (!ring_read_one (r, b))
+ break;
- b++;
- red++;
- }
+ b++;
+ red++;
+ }
return red;
}
@@ -51,14 +55,15 @@ ring_write (Ring * r, void *b, int n)
{
int writ = 0;
- while (n--) {
+ while (n--)
+ {
- if (!ring_write_one (r, b))
- break;
+ if (!ring_write_one (r, b))
+ break;
- b++;
- writ++;
- }
+ b++;
+ writ++;
+ }
return writ;
}