diff options
author | james <> | 2008-03-03 06:04:42 +0000 |
---|---|---|
committer | james <> | 2008-03-03 06:04:42 +0000 |
commit | f2c620137fa5290d913373e5579a97f0fee25fa3 (patch) | |
tree | dfbbe3562ae58e8f540a92654cb4f4d7323d59d7 /src/ring.c | |
parent | 800cb4bdfb56dcd606216788fb023fcc23fb69bf (diff) | |
download | sympathy-f2c620137fa5290d913373e5579a97f0fee25fa3.tar.gz sympathy-f2c620137fa5290d913373e5579a97f0fee25fa3.tar.bz2 sympathy-f2c620137fa5290d913373e5579a97f0fee25fa3.zip |
*** empty log message ***
Diffstat (limited to 'src/ring.c')
-rw-r--r-- | src/ring.c | 29 |
1 files changed, 17 insertions, 12 deletions
@@ -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; } |