diff options
author | 2005-10-07 21:47:32 +0000 | |
---|---|---|
committer | 2005-10-07 21:47:32 +0000 | |
commit | 4c06e5f6fe6880f7ad96ed56848b684d85ed5ecc (patch) | |
tree | ef1f060d6fbd6722a1bb7f53dd345f7eeb53a97a /usr.bin/cvs/diff.c | |
parent | give an example email address - this is important as we need to show (diff) | |
download | wireguard-openbsd-4c06e5f6fe6880f7ad96ed56848b684d85ed5ecc.tar.xz wireguard-openbsd-4c06e5f6fe6880f7ad96ed56848b684d85ed5ecc.zip |
knf and spacing, ok joris@
Diffstat (limited to 'usr.bin/cvs/diff.c')
-rw-r--r-- | usr.bin/cvs/diff.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.bin/cvs/diff.c b/usr.bin/cvs/diff.c index db37b8b1487..b305b57c17c 100644 --- a/usr.bin/cvs/diff.c +++ b/usr.bin/cvs/diff.c @@ -1,4 +1,4 @@ -/* $OpenBSD: diff.c,v 1.56 2005/10/05 23:11:06 niallo Exp $ */ +/* $OpenBSD: diff.c,v 1.57 2005/10/07 21:47:32 reyk Exp $ */ /* * Copyright (C) Caldera International Inc. 2001-2002. * All rights reserved. @@ -1353,8 +1353,8 @@ proceed: struct context_vec *tmp; ptrdiff_t offset = context_vec_ptr - context_vec_start; max_context <<= 1; - if ((tmp = realloc(context_vec_start, - max_context * sizeof(struct context_vec))) == NULL) { + if ((tmp = realloc(context_vec_start, max_context * + sizeof(struct context_vec))) == NULL) { free(context_vec_start); context_vec_start = NULL; cvs_log(LP_ERRNO, @@ -1592,7 +1592,8 @@ match_function(const long *f, int pos, FILE *fp) if (p != NULL) *p = '\0'; if (isalpha(buf[0]) || buf[0] == '_' || buf[0] == '$') { - strlcpy(lastbuf, (const char *)buf, sizeof lastbuf); + strlcpy(lastbuf, (const char *)buf, + sizeof lastbuf); lastmatchline = pos; return lastbuf; } |