diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-12-06 21:03:14 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-12-06 21:03:14 +0000 |
commit | ff9bafeb0d201ee9eff719dedd6a13b355b27931 (patch) | |
tree | 3a91fdf291b4ec44c6472eaa2edc48adfda4ed92 /usr.bin/cvs/buf.c | |
parent | 06cd0b351bf2244fbb9c05110c01487916237fcc (diff) |
tighten vertical spacing for else; jfb ok
Diffstat (limited to 'usr.bin/cvs/buf.c')
-rw-r--r-- | usr.bin/cvs/buf.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/usr.bin/cvs/buf.c b/usr.bin/cvs/buf.c index 016ef2977b5..7efbec219a4 100644 --- a/usr.bin/cvs/buf.c +++ b/usr.bin/cvs/buf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: buf.c,v 1.4 2004/11/28 15:12:17 pat Exp $ */ +/* $OpenBSD: buf.c,v 1.5 2004/12/06 21:03:12 deraadt Exp $ */ /* * Copyright (c) 2003 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -143,8 +143,7 @@ cvs_buf_load(const char *path, u_int flags) (void)close(fd); cvs_buf_free(bp); return (NULL); - } - else if (ret == 0) + } else if (ret == 0) break; buf->cb_len += (size_t)ret; @@ -244,9 +243,7 @@ cvs_buf_set(BUF *b, const void *src, size_t len, size_t off) return (-1); else rlen = b->cb_size - off; - - } - else + } else rlen = len; memcpy((b->cb_buf + off), src, rlen); @@ -316,8 +313,7 @@ cvs_buf_append(BUF *b, const void *data, size_t len) if (cvs_buf_grow(b, len - left) < 0) return (-1); bp = b->cb_cur + b->cb_len; - } - else + } else rlen = bep - bp; } |