aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/top/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/top/utils.c')
-rw-r--r--usr.bin/top/utils.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/usr.bin/top/utils.c b/usr.bin/top/utils.c
index 4a8a0d8817d4..2278bd116797 100644
--- a/usr.bin/top/utils.c
+++ b/usr.bin/top/utils.c
@@ -20,7 +20,7 @@
#include <string.h>
int
-atoiwi(char *str)
+atoiwi(const char *str)
{
int len;
@@ -136,7 +136,7 @@ int digits(int val)
*/
char *
-strecpy(char *to, char *from)
+strecpy(char *to, const char *from)
{
while ((*to++ = *from++) != '\0');
return(--to);
@@ -147,7 +147,7 @@ strecpy(char *to, char *from)
*/
int
-string_index(char *string, char *array[])
+string_index(const char *string, char *array[])
{
size_t i = 0;
@@ -170,9 +170,10 @@ string_index(char *string, char *array[])
* squat about quotes.
*/
-char **argparse(char *line, int *cntp)
+char **
+argparse(char *line, int *cntp)
{
- char *from;
+ const char *from;
char *to;
int cnt;
int ch;