diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2004-12-07 17:10:57 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2004-12-07 17:10:57 +0000 |
commit | 3dd0eeb90cc3cb05b003f511986aa48b242af672 (patch) | |
tree | 79eca74f76f32cb4adc73bf57472ab27577ef963 /usr.bin/cvs/util.c | |
parent | 2348195e75220fe47d1af53445293fc2d0b616d4 (diff) |
less whitespace, more pretty. ok jfb
Diffstat (limited to 'usr.bin/cvs/util.c')
-rw-r--r-- | usr.bin/cvs/util.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/usr.bin/cvs/util.c b/usr.bin/cvs/util.c index 2ad2823dd87..8893026bd85 100644 --- a/usr.bin/cvs/util.c +++ b/usr.bin/cvs/util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.17 2004/12/07 06:33:11 jfb Exp $ */ +/* $OpenBSD: util.c,v 1.18 2004/12/07 17:10:56 tedu Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -81,7 +81,6 @@ static const char *cvs_modestr[8] = { }; - pid_t cvs_exec_pid; @@ -92,7 +91,6 @@ pid_t cvs_exec_pid; * <dir>, and store that path into the buffer pointed to by <dst>, whose size * is <len>. */ - int cvs_readrepo(const char *dir, char *dst, size_t len) { @@ -132,7 +130,6 @@ cvs_readrepo(const char *dir, char *dst, size_t len) * parameter is not 0, the returned time will be adjusted according to the * machine's local timezone. */ - time_t cvs_datesec(const char *date, int type, int adj) { @@ -184,7 +181,7 @@ cvs_datesec(const char *date, int type, int adj) &cvs_tm.tm_mday, &cvs_tm.tm_hour, &cvs_tm.tm_min, &cvs_tm.tm_sec, &cvs_tm.tm_year); cvs_tm.tm_year -= 1900; - cvs_tm.tm_gmtoff = 0; + cvs_tm.tm_gmtoff = 0; } for (i = 0; i < (int)(sizeof(cvs_months)/sizeof(cvs_months[0])); i++) { @@ -208,7 +205,6 @@ cvs_datesec(const char *date, int type, int adj) * an error in such cases, but will issue warnings. * Returns 0 on success, or -1 on failure. */ - int cvs_strtomode(const char *str, mode_t *mode) { @@ -265,7 +261,6 @@ cvs_strtomode(const char *str, mode_t *mode) * * Returns 0 on success, or -1 on failure. */ - int cvs_modetostr(mode_t mode, char *buf, size_t len) { @@ -310,7 +305,6 @@ cvs_modetostr(mode_t mode, char *buf, size_t len) * given in <len> and must be at least 33. * Returns 0 on success, or -1 on failure. */ - int cvs_cksum(const char *file, char *dst, size_t len) { @@ -336,7 +330,6 @@ cvs_cksum(const char *file, char *dst, size_t len) * that delimiter. * Returns 0 on success, or -1 on failure. */ - int cvs_splitpath(const char *path, char *base, size_t blen, char **file) { @@ -372,7 +365,6 @@ cvs_splitpath(const char *path, char *base, size_t blen, char **file) * <argv>, which can accept up to <argvlen> entries. * Returns the number of arguments in the vector, or -1 if an error occured. */ - int cvs_getargv(const char *line, char **argv, int argvlen) { @@ -482,7 +474,6 @@ cvs_makeargv(const char *line, int *argc) * * Free an argument vector previously generated by cvs_getargv(). */ - void cvs_freeargv(char **argv, int argc) { @@ -501,7 +492,6 @@ cvs_freeargv(char **argv, int argc) * files already exist, they are kept as is. * Returns 0 on success, or -1 on failure. */ - int cvs_mkadmin(CVSFILE *cdir, mode_t mode) { @@ -569,7 +559,6 @@ cvs_mkadmin(CVSFILE *cdir, mode_t mode) /* * cvs_exec() */ - int cvs_exec(int argc, char **argv, int fds[3]) { |