diff options
author | Niall O'Higgins <niallo@cvs.openbsd.org> | 2006-03-20 16:18:14 +0000 |
---|---|---|
committer | Niall O'Higgins <niallo@cvs.openbsd.org> | 2006-03-20 16:18:14 +0000 |
commit | 476bf8f7fcedcb4bc23b900715716f3fac897fdb (patch) | |
tree | 0853b8ff04059c83bfb8c1fe1cbb6f706e4558fc /usr.bin/cvs/buf.c | |
parent | de50169127deba14884eaef1d8cb8c81f01abf41 (diff) |
delint; cvs_buf_write_stmp() will never return non-zero:
- remove superfluous error handling for cvs_buf_write_stmp()
- change cvs_buf_write_stmp() return type to void
ok joris@ xsa@
Diffstat (limited to 'usr.bin/cvs/buf.c')
-rw-r--r-- | usr.bin/cvs/buf.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.bin/cvs/buf.c b/usr.bin/cvs/buf.c index d2d67d3cadb..5933a9b51ca 100644 --- a/usr.bin/cvs/buf.c +++ b/usr.bin/cvs/buf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: buf.c,v 1.37 2006/03/17 07:37:08 ray Exp $ */ +/* $OpenBSD: buf.c,v 1.38 2006/03/20 16:18:13 niallo Exp $ */ /* * Copyright (c) 2003 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -404,7 +404,7 @@ cvs_buf_write(BUF *b, const char *path, mode_t mode) * specified using <template> (see mkstemp.3). NB. This function will modify * <template>, as per mkstemp */ -int +void cvs_buf_write_stmp(BUF *b, char *template, mode_t mode) { int fd; @@ -418,8 +418,6 @@ cvs_buf_write_stmp(BUF *b, char *template, mode_t mode) } (void)fchmod(fd, mode); (void)close(fd); - - return (0); } /* |