Module Name:    src
Committed By:   rillig
Date:           Mon Dec 28 12:52:45 UTC 2020

Modified Files:
        src/usr.bin/xlint/lint1: emit1.c init.c main1.c mem1.c print.c tree.c

Log Message:
lint1: remove trailing whitespace


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/usr.bin/xlint/lint1/emit1.c
cvs rdiff -u -r1.27 -r1.28 src/usr.bin/xlint/lint1/init.c \
    src/usr.bin/xlint/lint1/main1.c
cvs rdiff -u -r1.18 -r1.19 src/usr.bin/xlint/lint1/mem1.c
cvs rdiff -u -r1.4 -r1.5 src/usr.bin/xlint/lint1/print.c
cvs rdiff -u -r1.88 -r1.89 src/usr.bin/xlint/lint1/tree.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/xlint/lint1/emit1.c
diff -u src/usr.bin/xlint/lint1/emit1.c:1.20 src/usr.bin/xlint/lint1/emit1.c:1.21
--- src/usr.bin/xlint/lint1/emit1.c:1.20	Tue Dec 26 17:02:19 2017
+++ src/usr.bin/xlint/lint1/emit1.c	Mon Dec 28 12:52:45 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: emit1.c,v 1.20 2017/12/26 17:02:19 christos Exp $ */
+/* $NetBSD: emit1.c,v 1.21 2020/12/28 12:52:45 rillig Exp $ */
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All Rights Reserved.
@@ -38,7 +38,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: emit1.c,v 1.20 2017/12/26 17:02:19 christos Exp $");
+__RCSID("$NetBSD: emit1.c,v 1.21 2020/12/28 12:52:45 rillig Exp $");
 #endif
 
 #include <ctype.h>
@@ -55,8 +55,8 @@ static	void	outfstrg(strg_t *);
  * a node is coded as follows:
  *	_Bool			B
  *	_Complex float		s X
- *	_Complex double		X 
- *	_Complex long double	l X 
+ *	_Complex double		X
+ *	_Complex long double	l X
  *	char			C
  *	signed char		s C
  *	unsigned char		u C

Index: src/usr.bin/xlint/lint1/init.c
diff -u src/usr.bin/xlint/lint1/init.c:1.27 src/usr.bin/xlint/lint1/init.c:1.28
--- src/usr.bin/xlint/lint1/init.c:1.27	Tue Jul 28 17:55:13 2015
+++ src/usr.bin/xlint/lint1/init.c	Mon Dec 28 12:52:45 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: init.c,v 1.27 2015/07/28 17:55:13 christos Exp $	*/
+/*	$NetBSD: init.c,v 1.28 2020/12/28 12:52:45 rillig Exp $	*/
 
 /*
  * Copyright (c) 1994, 1995 Jochen Pohl
@@ -37,7 +37,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: init.c,v 1.27 2015/07/28 17:55:13 christos Exp $");
+__RCSID("$NetBSD: init.c,v 1.28 2020/12/28 12:52:45 rillig Exp $");
 #endif
 
 #include <stdlib.h>
@@ -87,7 +87,7 @@ void
 memberpush(sb)
 	sbuf_t *sb;
 {
-	namlist_t *nam = xcalloc(1, sizeof (namlist_t)); 
+	namlist_t *nam = xcalloc(1, sizeof (namlist_t));
 	nam->n_name = sb->sb_name;
 	DPRINTF(("%s: %s %p\n", __func__, nam->n_name, nam));
 	if (namedmem == NULL) {
@@ -356,7 +356,7 @@ again:
 			if (m == NULL) {
 				DPRINTF(("%s(): struct pop\n", __func__));
 				goto pop;
-			} 
+			}
 			istk->i_mem = m;
 			istk->i_subt = m->s_type;
 			istk->i_namedmem = 1;
Index: src/usr.bin/xlint/lint1/main1.c
diff -u src/usr.bin/xlint/lint1/main1.c:1.27 src/usr.bin/xlint/lint1/main1.c:1.28
--- src/usr.bin/xlint/lint1/main1.c:1.27	Sun Dec 23 19:09:03 2018
+++ src/usr.bin/xlint/lint1/main1.c	Mon Dec 28 12:52:45 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: main1.c,v 1.27 2018/12/23 19:09:03 christos Exp $	*/
+/*	$NetBSD: main1.c,v 1.28 2020/12/28 12:52:45 rillig Exp $	*/
 
 /*
  * Copyright (c) 1994, 1995 Jochen Pohl
@@ -37,7 +37,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: main1.c,v 1.27 2018/12/23 19:09:03 christos Exp $");
+__RCSID("$NetBSD: main1.c,v 1.28 2020/12/28 12:52:45 rillig Exp $");
 #endif
 
 #include <sys/types.h>
@@ -202,7 +202,7 @@ main(int argc, char *argv[])
 			msglist();
 			return(0);
 
-		case 'R':	
+		case 'R':
 			fnaddreplsrcdir(optarg);
 			break;
 

Index: src/usr.bin/xlint/lint1/mem1.c
diff -u src/usr.bin/xlint/lint1/mem1.c:1.18 src/usr.bin/xlint/lint1/mem1.c:1.19
--- src/usr.bin/xlint/lint1/mem1.c:1.18	Sat Dec 24 17:43:45 2016
+++ src/usr.bin/xlint/lint1/mem1.c	Mon Dec 28 12:52:45 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: mem1.c,v 1.18 2016/12/24 17:43:45 christos Exp $	*/
+/*	$NetBSD: mem1.c,v 1.19 2020/12/28 12:52:45 rillig Exp $	*/
 
 /*
  * Copyright (c) 1994, 1995 Jochen Pohl
@@ -37,7 +37,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: mem1.c,v 1.18 2016/12/24 17:43:45 christos Exp $");
+__RCSID("$NetBSD: mem1.c,v 1.19 2020/12/28 12:52:45 rillig Exp $");
 #endif
 
 #include <sys/types.h>
@@ -100,9 +100,9 @@ void
 fnaddreplsrcdir(char *arg)
 {
 	struct repl *r = xmalloc(sizeof(*r));
-	
+
 	r->orig = arg;
-	if ((r->repl = strchr(arg, '=')) == NULL) 
+	if ((r->repl = strchr(arg, '=')) == NULL)
 		err(1, "Bad replacement directory spec `%s'", arg);
 	r->len = r->repl - r->orig;
 	*(r->repl)++ = '\0';

Index: src/usr.bin/xlint/lint1/print.c
diff -u src/usr.bin/xlint/lint1/print.c:1.4 src/usr.bin/xlint/lint1/print.c:1.5
--- src/usr.bin/xlint/lint1/print.c:1.4	Thu Jul 31 15:21:34 2008
+++ src/usr.bin/xlint/lint1/print.c	Mon Dec 28 12:52:45 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: print.c,v 1.4 2008/07/31 15:21:34 christos Exp $	*/
+/*	$NetBSD: print.c,v 1.5 2020/12/28 12:52:45 rillig Exp $	*/
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: print.c,v 1.4 2008/07/31 15:21:34 christos Exp $");
+__RCSID("$NetBSD: print.c,v 1.5 2020/12/28 12:52:45 rillig Exp $");
 #endif
 
 #include <stdio.h>
@@ -132,7 +132,7 @@ prtnode(char *buf, size_t bufsiz, const 
 			break;
 		}
 		break;
-		
+
 	case STRING:
 		st = tn->tn_strg;
 		switch (st->st_tspec) {

Index: src/usr.bin/xlint/lint1/tree.c
diff -u src/usr.bin/xlint/lint1/tree.c:1.88 src/usr.bin/xlint/lint1/tree.c:1.89
--- src/usr.bin/xlint/lint1/tree.c:1.88	Tue Jun  2 21:10:07 2020
+++ src/usr.bin/xlint/lint1/tree.c	Mon Dec 28 12:52:45 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: tree.c,v 1.88 2020/06/02 21:10:07 christos Exp $	*/
+/*	$NetBSD: tree.c,v 1.89 2020/12/28 12:52:45 rillig Exp $	*/
 
 /*
  * Copyright (c) 1994, 1995 Jochen Pohl
@@ -37,7 +37,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: tree.c,v 1.88 2020/06/02 21:10:07 christos Exp $");
+__RCSID("$NetBSD: tree.c,v 1.89 2020/12/28 12:52:45 rillig Exp $");
 #endif
 
 #include <stdlib.h>
@@ -702,7 +702,7 @@ typeok(op_t op, int arg, tnode_t *ln, tn
 
 	if ((ltp = ln->tn_type) == NULL)
 		LERROR("typeok()");
-		
+
 	if ((lt = ltp->t_tspec) == PTR)
 		lst = (lstp = ltp->t_subt)->t_tspec;
 	if (mp->m_binary) {
@@ -1298,7 +1298,7 @@ asgntypok(op_t op, int arg, tnode_t *ln,
 	switch (op) {
 	case INIT:
 		/* initialisation type mismatch */
-		error(185, tyname(lbuf, sizeof(lbuf), ltp), 
+		error(185, tyname(lbuf, sizeof(lbuf), ltp),
 		    tyname(rbuf, sizeof(rbuf), rtp));
 		break;
 	case RETURN:
@@ -3040,7 +3040,7 @@ bldoffsetof(type_t *tp, sym_t *sym)
 	tspec_t t = tp->t_tspec;
 	if (t != STRUCT && t != UNION)
 		error(111, "offsetof");
-		
+
 	// XXX: wrong size, no checking for sym fixme
 	return getinode(st, tsize(tp) / CHAR_BIT);
 }
@@ -3959,7 +3959,7 @@ conaddr(tnode_t *tn, sym_t **symp, ptrdi
 		if ((!isityp(t) && t != PTR) || (!isityp(ot) && ot != PTR))
 			return (-1);
 #ifdef notdef
-		/* 
+		/*
 		 * consider:
 		 * 	struct foo {
 		 *	    unsigned char a;

Reply via email to