From fa325e9b42b0bdfb48857d1958d9fb7ceac55151 Mon Sep 17 00:00:00 2001 From: Dan Cross Date: Fri, 10 Jan 2020 14:44:21 +0000 Subject: Trivial changes: whitespace and modes. Remote whitespace at the ends of lines. Remove blank lines from the ends of files. Change modes on source files so that they are not executable. Signed-off-by: Dan Cross --- src/libventi/log.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'src/libventi/log.c') diff --git a/src/libventi/log.c b/src/libventi/log.c index 0d67a98b..a6738c7a 100644 --- a/src/libventi/log.c +++ b/src/libventi/log.c @@ -36,7 +36,7 @@ vtlognames(int *pn) int i, nname, size; VtLog *l; char **s, *a, *e; - + qlock(&vl.lk); size = 0; nname = 0; @@ -45,7 +45,7 @@ vtlognames(int *pn) nname++; size += strlen(l->name)+1; } - + s = vtmalloc(nname*sizeof(char*)+size); a = (char*)(s+nname); e = (char*)s+nname*sizeof(char*)+size; @@ -111,12 +111,12 @@ vtlogopen(char *name, uint size) } strcpy(p, name); l->name = p; - + /* insert */ l->next = vl.hash[h]; vl.hash[h] = l; l->ref++; - + l->ref++; qunlock(&vl.lk); return l; @@ -192,10 +192,10 @@ void vtlogprint(VtLog *l, char *fmt, ...) { va_list arg; - + if(l == nil) return; - + va_start(arg, fmt); vtlogvprint(l, fmt, arg); va_end(arg); @@ -224,7 +224,7 @@ vtlogdump(int fd, VtLog *l) if(l == nil) return; - + c = l->w; for(i=0; inchunk; i++){ if(++c == l->chunk+l->nchunk) @@ -232,4 +232,3 @@ vtlogdump(int fd, VtLog *l) write(fd, c->p, c->wp-c->p); } } - -- cgit v1.2.3