summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2004-06-13 18:49:03 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2004-06-13 18:49:03 +0000
commit36d6f070719db6116dbf610935b841a9f8e6ab3f (patch)
tree991dfcc8df4c619158ab5e720899c52f11cf66b2 /usr.bin
parent911bcf252e39629ea9e5ed66db30fbcec48e22e7 (diff)
Typos in comments and a redundant prototype. From Brian Poole via jmc@
ok jmc@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/top/display.c6
-rw-r--r--usr.bin/top/machine.c4
-rw-r--r--usr.bin/top/machine.h3
3 files changed, 6 insertions, 7 deletions
diff --git a/usr.bin/top/display.c b/usr.bin/top/display.c
index b540bdee4db..243fdc6af4f 100644
--- a/usr.bin/top/display.c
+++ b/usr.bin/top/display.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: display.c,v 1.17 2003/11/01 20:20:57 deraadt Exp $ */
+/* $OpenBSD: display.c,v 1.18 2004/06/13 18:49:02 otto Exp $ */
/*
* Top users/processes display for Unix
@@ -38,7 +38,7 @@
* ASSUMPTIONS:
* None of the "i_" routines use any of the termcap capabilities.
* In this way, those routines can be safely used on terminals that
- * have minimal (or nonexistant) terminal capabilities.
+ * have minimal (or nonexistent) terminal capabilities.
*
* The routines are called in this order: *_loadave, i_timeofday,
* *_procstates, *_cpustates, *_memory, *_message, *_header,
@@ -81,7 +81,7 @@ static void line_update(char *, char *, int, int);
#define lineindex(l) ((l)*display_width)
-/* things initialized by display_init and used thruout */
+/* things initialized by display_init and used throughout */
/* buffer of proc information lines for display updating */
char *screenbuf = NULL;
diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c
index 020f6a2d7c7..62c4cf9b2b5 100644
--- a/usr.bin/top/machine.c
+++ b/usr.bin/top/machine.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machine.c,v 1.42 2004/06/11 16:08:54 deraadt Exp $ */
+/* $OpenBSD: machine.c,v 1.43 2004/06/13 18:49:02 otto Exp $ */
/*-
* Copyright (c) 1994 Thorsten Lockert <tholo@sigmasoft.com>
@@ -609,7 +609,7 @@ int (*proc_compares[])(const void *, const void *) = {
/*
* proc_owner(pid) - returns the uid that owns process "pid", or -1 if
* the process does not exist.
- * It is EXTREMLY IMPORTANT that this function work correctly.
+ * It is EXTREMELY IMPORTANT that this function work correctly.
* If top runs setuid root (as in SVR4), then this function
* is the only thing that stands in the way of a serious
* security problem. It validates requests for the "kill"
diff --git a/usr.bin/top/machine.h b/usr.bin/top/machine.h
index fb191daf30d..ff4cd478d7e 100644
--- a/usr.bin/top/machine.h
+++ b/usr.bin/top/machine.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: machine.h,v 1.10 2004/05/09 22:14:15 deraadt Exp $ */
+/* $OpenBSD: machine.h,v 1.11 2004/06/13 18:49:02 otto Exp $ */
/*
* Top users/processes display for Unix
@@ -87,5 +87,4 @@ extern caddr_t
get_process_info(struct system_info *, struct process_select *,
int (*) (const void *, const void *));
extern char *format_next_process(caddr_t, char *(*)(uid_t));
-extern int proc_compate(const void *, const void *);
extern uid_t proc_owner(pid_t);