summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorschweikh <schweikh@FreeBSD.org>2003-01-01 18:13:45 +0000
committerschweikh <schweikh@FreeBSD.org>2003-01-01 18:13:45 +0000
commit718a7892bc6da2237db71c255051dd54a4e93a92 (patch)
tree7ad799f5e234745be6f5c16c2ebcacd19e33c2e5 /usr.bin
parent69aeeb4dc21acaeca02dbc568cf475e6415b97ce (diff)
downloadFreeBSD-src-718a7892bc6da2237db71c255051dd54a4e93a92.zip
FreeBSD-src-718a7892bc6da2237db71c255051dd54a4e93a92.tar.gz
Fix typos; add FreeBSD Id where missing.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/xlint/lint1/decl.c4
-rw-r--r--usr.bin/xlint/lint1/lint1.h6
-rw-r--r--usr.bin/xlint/lint1/scan.l2
-rw-r--r--usr.bin/xlint/lint1/tree.c8
-rw-r--r--usr.bin/xlint/lint2/main2.c3
-rw-r--r--usr.bin/xlint/lint2/read.c2
6 files changed, 14 insertions, 11 deletions
diff --git a/usr.bin/xlint/lint1/decl.c b/usr.bin/xlint/lint1/decl.c
index 6069bf5..69c7cda 100644
--- a/usr.bin/xlint/lint1/decl.c
+++ b/usr.bin/xlint/lint1/decl.c
@@ -1782,7 +1782,7 @@ decl1ext(sym_t *dsym, int initflg)
if ((rdsym = dcs->d_rdcsym) != NULL) {
/*
- * If the old symbol stems from a old style function definition
+ * If the old symbol stems from an old style function definition
* we have remembered the params in rdsmy->s_args and compare
* them with the params of the prototype.
*/
@@ -2524,7 +2524,7 @@ decl1loc(sym_t *dsym, int initflg)
}
/*
- * Before we can check the size we must wait for a initialisation
+ * Before we can check the size we must wait for an initialisation
* which may follow.
*/
}
diff --git a/usr.bin/xlint/lint1/lint1.h b/usr.bin/xlint/lint1/lint1.h
index 278019e..4594f18 100644
--- a/usr.bin/xlint/lint1/lint1.h
+++ b/usr.bin/xlint/lint1/lint1.h
@@ -31,6 +31,8 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
#include "lint.h"
#include "op.h"
@@ -221,7 +223,7 @@ typedef struct sym {
definition */
u_int s_rimpl : 1; /* return value of function implizit decl. */
u_int s_osdef : 1; /* symbol stems from old style function def. */
- u_int s_inline : 1; /* true if this is a inline function */
+ u_int s_inline : 1; /* true if this is an inline function */
struct sym *s_xsym; /* for local declared external symbols pointer
to external symbol with same name */
def_t s_def; /* declared, tentative defined, defined */
@@ -232,7 +234,7 @@ typedef struct sym {
val_t s_value; /* value (if enumcon) */
union {
str_t *_s_st; /* tag, if it is a struct/union member */
- enum_t *_s_et; /* tag, if it is a enumerator */
+ enum_t *_s_et; /* tag, if it is an enumerator */
tspec_t _s_tsp; /* type (only for keywords) */
tqual_t _s_tqu; /* qualifier (only for keywords) */
struct sym *_s_args; /* arguments in old style function
diff --git a/usr.bin/xlint/lint1/scan.l b/usr.bin/xlint/lint1/scan.l
index 9a4617f..ea5a2c5 100644
--- a/usr.bin/xlint/lint1/scan.l
+++ b/usr.bin/xlint/lint1/scan.l
@@ -262,7 +262,7 @@ symt_t symtyp;
/*
* All keywords are written to the symbol table. This saves us looking
- * in a extra table for each name we found.
+ * in an extra table for each name we found.
*/
void
initscan(void)
diff --git a/usr.bin/xlint/lint1/tree.c b/usr.bin/xlint/lint1/tree.c
index cefbeb8..2a65d80 100644
--- a/usr.bin/xlint/lint1/tree.c
+++ b/usr.bin/xlint/lint1/tree.c
@@ -263,7 +263,7 @@ getcnode(type_t *tp, val_t *v)
}
/*
- * Create a node for a integer constant.
+ * Create a node for an integer constant.
*/
static tnode_t *
getinode(tspec_t t, int64_t q)
@@ -2026,7 +2026,7 @@ cvtcon(op_t op, int arg, type_t *tp, val_t *nv, val_t *v)
* the bits was set in a signed type.
* Loss of significant bits means that it is not
* possible, also not with necessary casts, to convert
- * back to the original type. A example for a
+ * back to the original type. An example for a
* necessary cast is:
* char c; int i; c = 128;
* i = c; ** yields -128 **
@@ -2079,7 +2079,7 @@ cvtcon(op_t op, int arg, type_t *tp, val_t *nv, val_t *v)
/*
* Called if incompatible types were detected.
- * Prints a appropriate warning.
+ * Prints an appropriate warning.
*/
static void
incompat(op_t op, tspec_t lt, tspec_t rt)
@@ -3448,7 +3448,7 @@ chkmisc(tnode_t *tn, int vctx, int tctx, int eqwarn, int fcall, int rvdisc,
if (ln->tn_op == NAME && (reached || rchflg)) {
sc = ln->tn_sym->s_scl;
/*
- * Look if there was a asm statement in one of the
+ * Look if there was an asm statement in one of the
* compound statements we are in. If not, we don't
* print a warning.
*/
diff --git a/usr.bin/xlint/lint2/main2.c b/usr.bin/xlint/lint2/main2.c
index 71e8c10..a05ddf4 100644
--- a/usr.bin/xlint/lint2/main2.c
+++ b/usr.bin/xlint/lint2/main2.c
@@ -35,6 +35,7 @@
#if defined(__RCSID) && !defined(lint)
__RCSID("$NetBSD: main2.c,v 1.5 2001/11/21 19:14:26 wiz Exp $");
#endif
+__FBSDID("$FreeBSD$");
#include <stdio.h>
#include <stdlib.h>
@@ -67,7 +68,7 @@ int sflag;
int tflag;
/*
- * If a complaint stems from a included file, print the name of the included
+ * If a complaint stems from an included file, print the name of the included
* file instead of the name spezified at the command line followed by '?'
*/
int Hflag;
diff --git a/usr.bin/xlint/lint2/read.c b/usr.bin/xlint/lint2/read.c
index 05c7be8..4695828 100644
--- a/usr.bin/xlint/lint2/read.c
+++ b/usr.bin/xlint/lint2/read.c
@@ -67,7 +67,7 @@ static size_t nfnames;
/*
* Types are shared (to save memory for the types itself) and accessed
* via indices (to save memory for references to types (indices are short)).
- * To share types, a equal type must be located fast. This is done by a
+ * To share types, an equal type must be located fast. This is done by a
* hash table. Access by indices is done via an array of pointers to the
* types.
*/
OpenPOWER on IntegriCloud