summaryrefslogtreecommitdiff
path: root/bin/csh
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2023-03-08 04:43:16 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2023-03-08 04:43:16 +0000
commitb7ec05677ee9f62c29e195e7be5125d39f7fdad9 (patch)
treed2d92930c9557994e5a771aef772966110966cc3 /bin/csh
parent3f4b7c5f0adcfdffa19cefea0c39206811487db6 (diff)
Delete obsolete /* ARGSUSED */ lint comments.
ok miod@ millert@
Diffstat (limited to 'bin/csh')
-rw-r--r--bin/csh/csh.c4
-rw-r--r--bin/csh/dir.c6
-rw-r--r--bin/csh/dol.c3
-rw-r--r--bin/csh/exec.c8
-rw-r--r--bin/csh/func.c29
-rw-r--r--bin/csh/hist.c3
-rw-r--r--bin/csh/proc.c11
-rw-r--r--bin/csh/set.c6
-rw-r--r--bin/csh/time.c4
9 files changed, 9 insertions, 65 deletions
diff --git a/bin/csh/csh.c b/bin/csh/csh.c
index 925b8272b04..c948f5d7063 100644
--- a/bin/csh/csh.c
+++ b/bin/csh/csh.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: csh.c,v 1.49 2022/01/28 05:15:05 guenther Exp $ */
+/* $OpenBSD: csh.c,v 1.50 2023/03/08 04:43:04 guenther Exp $ */
/* $NetBSD: csh.c,v 1.14 1995/04/29 23:21:28 mycroft Exp $ */
/*-
@@ -946,7 +946,6 @@ Char *jobargv[2] = {STRjobs, 0};
* and finally go through the normal error mechanism, which
* gets a chance to make the shell go away.
*/
-/* ARGSUSED */
void
pintr(int notused)
{
@@ -1148,7 +1147,6 @@ process(bool catch)
}
void
-/*ARGSUSED*/
dosource(Char **v, struct command *t)
{
Char *f;
diff --git a/bin/csh/dir.c b/bin/csh/dir.c
index 2453531aa94..14a498d3c5e 100644
--- a/bin/csh/dir.c
+++ b/bin/csh/dir.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dir.c,v 1.25 2020/08/30 22:23:47 mortimer Exp $ */
+/* $OpenBSD: dir.c,v 1.26 2023/03/08 04:43:04 guenther Exp $ */
/* $NetBSD: dir.c,v 1.9 1995/03/21 09:02:42 cgd Exp $ */
/*-
@@ -174,7 +174,6 @@ skipargs(Char ***v, char *str)
* dodirs - list all directories in directory loop
*/
void
-/*ARGSUSED*/
dodirs(Char **v, struct command *t)
{
skipargs(&v, "");
@@ -318,7 +317,6 @@ dnormalize(Char *cp)
* dochngd - implement chdir command.
*/
void
-/*ARGSUSED*/
dochngd(Char **v, struct command *t)
{
Char *cp;
@@ -465,7 +463,6 @@ dfollow(Char *cp)
* with numeric argument (+n) bring it to top.
*/
void
-/*ARGSUSED*/
dopushd(Char **v, struct command *t)
{
struct directory *dp;
@@ -547,7 +544,6 @@ dfind(Char *cp)
* with a numeric argument just discard it.
*/
void
-/*ARGSUSED*/
dopopd(Char **v, struct command *t)
{
struct directory *dp, *p = NULL;
diff --git a/bin/csh/dol.c b/bin/csh/dol.c
index 8d96579a2aa..d7ba5fa15b3 100644
--- a/bin/csh/dol.c
+++ b/bin/csh/dol.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dol.c,v 1.26 2019/06/28 05:35:34 deraadt Exp $ */
+/* $OpenBSD: dol.c,v 1.27 2023/03/08 04:43:04 guenther Exp $ */
/* $NetBSD: dol.c,v 1.8 1995/09/27 00:38:38 jtc Exp $ */
/*-
@@ -810,7 +810,6 @@ Dtestq(int c)
* Unit 0 should have been closed before this call.
*/
void
-/*ARGSUSED*/
heredoc(Char *term)
{
int c;
diff --git a/bin/csh/exec.c b/bin/csh/exec.c
index 73530dfae3d..ca4bc6c6a9a 100644
--- a/bin/csh/exec.c
+++ b/bin/csh/exec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: exec.c,v 1.21 2018/09/18 06:56:09 deraadt Exp $ */
+/* $OpenBSD: exec.c,v 1.22 2023/03/08 04:43:04 guenther Exp $ */
/* $NetBSD: exec.c,v 1.9 1996/09/30 20:03:54 christos Exp $ */
/*-
@@ -97,7 +97,6 @@ static int iscommand(Char *);
void
-/*ARGSUSED*/
doexec(Char **v, struct command *t)
{
Char *dp, **pv, **av, *sav;
@@ -340,7 +339,6 @@ texec(Char *sf, Char **st)
}
}
-/*ARGSUSED*/
void
execash(Char **t, struct command *kp)
{
@@ -420,7 +418,6 @@ xechoit(Char **t)
}
void
-/*ARGSUSED*/
dohash(Char **v, struct command *t)
{
DIR *dirp;
@@ -458,14 +455,12 @@ dohash(Char **v, struct command *t)
}
void
-/*ARGSUSED*/
dounhash(Char **v, struct command *t)
{
havhash = 0;
}
void
-/*ARGSUSED*/
hashstat(Char **v, struct command *t)
{
if (hits + misses)
@@ -585,7 +580,6 @@ executable(Char *dir, Char *name, bool dir_ok)
* West-Germany
* Thanks!!
*/
-/*ARGSUSED*/
void
dowhich(Char **v, struct command *c)
{
diff --git a/bin/csh/func.c b/bin/csh/func.c
index 9a8414360cc..b9a775b8a52 100644
--- a/bin/csh/func.c
+++ b/bin/csh/func.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: func.c,v 1.40 2021/07/02 15:34:27 deraadt Exp $ */
+/* $OpenBSD: func.c,v 1.41 2023/03/08 04:43:04 guenther Exp $ */
/* $NetBSD: func.c,v 1.11 1996/02/09 02:28:29 christos Exp $ */
/*-
@@ -114,7 +114,6 @@ func(struct command *t, struct biltins *bp)
}
void
-/*ARGSUSED*/
doonintr(Char **v, struct command *t)
{
Char *cp;
@@ -148,7 +147,6 @@ doonintr(Char **v, struct command *t)
}
void
-/*ARGSUSED*/
donohup(Char **v, struct command *t)
{
if (intty)
@@ -159,7 +157,6 @@ donohup(Char **v, struct command *t)
}
void
-/*ARGSUSED*/
dozip(Char **v, struct command *t)
{
;
@@ -172,7 +169,6 @@ prvars(void)
}
void
-/*ARGSUSED*/
doalias(Char **v, struct command *t)
{
struct varent *vp;
@@ -199,14 +195,12 @@ doalias(Char **v, struct command *t)
}
void
-/*ARGSUSED*/
unalias(Char **v, struct command *t)
{
unset1(v, &aliases);
}
void
-/*ARGSUSED*/
dologout(Char **v, struct command *t)
{
islogin();
@@ -214,7 +208,6 @@ dologout(Char **v, struct command *t)
}
void
-/*ARGSUSED*/
dologin(Char **v, struct command *t)
{
islogin();
@@ -287,14 +280,12 @@ reexecute(struct command *kp)
}
void
-/*ARGSUSED*/
doelse(Char **v, struct command *t)
{
search(T_ELSE, 0, NULL);
}
void
-/*ARGSUSED*/
dogoto(Char **v, struct command *t)
{
Char *lp;
@@ -327,7 +318,6 @@ gotolab(Char *lab)
}
void
-/*ARGSUSED*/
doswitch(Char **v, struct command *t)
{
Char *cp, *lp;
@@ -345,7 +335,6 @@ doswitch(Char **v, struct command *t)
}
void
-/*ARGSUSED*/
dobreak(Char **v, struct command *t)
{
if (whyles)
@@ -355,7 +344,6 @@ dobreak(Char **v, struct command *t)
}
void
-/*ARGSUSED*/
doexit(Char **v, struct command *t)
{
if (chkstop == 0 && (intty || intact) && evalvec == 0)
@@ -375,7 +363,6 @@ doexit(Char **v, struct command *t)
}
void
-/*ARGSUSED*/
doforeach(Char **v, struct command *t)
{
Char *cp, *sp;
@@ -417,7 +404,6 @@ doforeach(Char **v, struct command *t)
}
void
-/*ARGSUSED*/
dowhile(Char **v, struct command *t)
{
int status;
@@ -477,7 +463,6 @@ preread(void)
}
void
-/*ARGSUSED*/
doend(Char **v, struct command *t)
{
if (!whyles)
@@ -487,7 +472,6 @@ doend(Char **v, struct command *t)
}
void
-/*ARGSUSED*/
docontin(Char **v, struct command *t)
{
if (!whyles)
@@ -541,7 +525,6 @@ dorepeat(Char **v, struct command *kp)
}
void
-/*ARGSUSED*/
doswbrk(Char **v, struct command *t)
{
search(T_BRKSW, 0, NULL);
@@ -829,14 +812,12 @@ wfree(void)
}
void
-/*ARGSUSED*/
doecho(Char **v, struct command *t)
{
xecho(' ', v);
}
void
-/*ARGSUSED*/
doglob(Char **v, struct command *t)
{
xecho(0, v);
@@ -890,7 +871,6 @@ xecho(int sep, Char **v)
}
void
-/*ARGSUSED*/
dosetenv(Char **v, struct command *t)
{
Char *vp, *lp;
@@ -920,7 +900,6 @@ dosetenv(Char **v, struct command *t)
}
void
-/*ARGSUSED*/
dounsetenv(Char **v, struct command *t)
{
Char **ep, *p, *n, *name;
@@ -1011,7 +990,6 @@ Unsetenv(Char *name)
}
void
-/*ARGSUSED*/
doumask(Char **v, struct command *t)
{
Char *cp = v[1];
@@ -1078,7 +1056,6 @@ findlim(Char *cp)
}
void
-/*ARGSUSED*/
dolimit(Char **v, struct command *t)
{
struct limits *lp;
@@ -1184,7 +1161,6 @@ limtail(Char *cp, char *str)
stderror(ERR_BADSCALE, origstr);
}
-/*ARGSUSED*/
static void
plim(struct limits *lp, Char hard)
{
@@ -1207,7 +1183,6 @@ plim(struct limits *lp, Char hard)
}
void
-/*ARGSUSED*/
dounlimit(Char **v, struct command *t)
{
struct limits *lp;
@@ -1261,7 +1236,6 @@ setlim(struct limits *lp, Char hard, rlim_t limit)
}
void
-/*ARGSUSED*/
dosuspend(Char **v, struct command *t)
{
int ctpgrp;
@@ -1307,7 +1281,6 @@ retry:
static Char **gv = NULL;
void
-/*ARGSUSED*/
doeval(Char **v, struct command *t)
{
Char **oevalvec;
diff --git a/bin/csh/hist.c b/bin/csh/hist.c
index 5b3edc0eb8a..722e2182089 100644
--- a/bin/csh/hist.c
+++ b/bin/csh/hist.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hist.c,v 1.10 2015/12/26 13:48:38 mestre Exp $ */
+/* $OpenBSD: hist.c,v 1.11 2023/03/08 04:43:04 guenther Exp $ */
/* $NetBSD: hist.c,v 1.7 1995/03/21 18:35:44 mycroft Exp $ */
/*-
@@ -101,7 +101,6 @@ hfree(struct Hist *hp)
}
void
-/*ARGSUSED*/
dohist(Char **v, struct command *t)
{
int n, rflg = 0, hflg = 0;
diff --git a/bin/csh/proc.c b/bin/csh/proc.c
index 03a8ff4e673..369e1d699ab 100644
--- a/bin/csh/proc.c
+++ b/bin/csh/proc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: proc.c,v 1.34 2020/08/30 22:23:47 mortimer Exp $ */
+/* $OpenBSD: proc.c,v 1.35 2023/03/08 04:43:04 guenther Exp $ */
/* $NetBSD: proc.c,v 1.9 1995/04/29 23:21:33 mycroft Exp $ */
/*-
@@ -344,7 +344,6 @@ pjwait(struct process *pp)
* dowait - wait for all processes to finish
*/
void
-/*ARGSUSED*/
dowait(Char **v, struct command *t)
{
struct process *pp;
@@ -831,7 +830,6 @@ ptprint(struct process *tp)
* dojobs - print all jobs
*/
void
-/*ARGSUSED*/
dojobs(Char **v, struct command *t)
{
struct process *pp;
@@ -859,7 +857,6 @@ dojobs(Char **v, struct command *t)
* dofg - builtin - put the job into the foreground
*/
void
-/*ARGSUSED*/
dofg(Char **v, struct command *t)
{
struct process *pp;
@@ -877,7 +874,6 @@ dofg(Char **v, struct command *t)
* %... - builtin - put the job into the foreground
*/
void
-/*ARGSUSED*/
dofg1(Char **v, struct command *t)
{
struct process *pp;
@@ -892,7 +888,6 @@ dofg1(Char **v, struct command *t)
* dobg - builtin - put the job into the background
*/
void
-/*ARGSUSED*/
dobg(Char **v, struct command *t)
{
struct process *pp;
@@ -909,7 +904,6 @@ dobg(Char **v, struct command *t)
* %... & - builtin - put the job into the background
*/
void
-/*ARGSUSED*/
dobg1(Char **v, struct command *t)
{
struct process *pp;
@@ -922,7 +916,6 @@ dobg1(Char **v, struct command *t)
* dostop - builtin - stop the job
*/
void
-/*ARGSUSED*/
dostop(Char **v, struct command *t)
{
pkill(++v, SIGSTOP);
@@ -932,7 +925,6 @@ dostop(Char **v, struct command *t)
* dokill - builtin - superset of kill (1)
*/
void
-/*ARGSUSED*/
dokill(Char **v, struct command *t)
{
int signum = SIGTERM;
@@ -1218,7 +1210,6 @@ pgetcurr(struct process *pp)
* donotify - flag the job so as to report termination asynchronously
*/
void
-/*ARGSUSED*/
donotify(Char **v, struct command *t)
{
struct process *pp;
diff --git a/bin/csh/set.c b/bin/csh/set.c
index cbb391db197..0a986bc7ab7 100644
--- a/bin/csh/set.c
+++ b/bin/csh/set.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: set.c,v 1.24 2022/01/28 05:15:05 guenther Exp $ */
+/* $OpenBSD: set.c,v 1.25 2023/03/08 04:43:04 guenther Exp $ */
/* $NetBSD: set.c,v 1.8 1995/03/21 18:35:52 mycroft Exp $ */
/*-
@@ -55,7 +55,6 @@ static void balance(struct varent *, int, int);
*/
void
-/*ARGSUSED*/
doset(Char **v, struct command *t)
{
Char *p;
@@ -198,7 +197,6 @@ getvx(Char *vp, int subscr)
}
void
-/*ARGSUSED*/
dolet(Char **v, struct command *t)
{
Char *p;
@@ -456,7 +454,6 @@ found:
}
void
-/*ARGSUSED*/
unset(Char **v, struct command *t)
{
unset1(v, &shvhed);
@@ -544,7 +541,6 @@ setNS(Char *cp)
}
void
-/*ARGSUSED*/
shift(Char **v, struct command *t)
{
struct varent *argv;
diff --git a/bin/csh/time.c b/bin/csh/time.c
index 7483a898859..30c2b9b4aa8 100644
--- a/bin/csh/time.c
+++ b/bin/csh/time.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: time.c,v 1.17 2018/09/18 06:56:09 deraadt Exp $ */
+/* $OpenBSD: time.c,v 1.18 2023/03/08 04:43:04 guenther Exp $ */
/* $NetBSD: time.c,v 1.7 1995/03/21 13:55:25 mycroft Exp $ */
/*-
@@ -57,7 +57,6 @@ settimes(void)
* prefix to another command
*/
void
-/*ARGSUSED*/
dotime(Char **v, struct command *t)
{
struct timespec timedol;
@@ -74,7 +73,6 @@ dotime(Char **v, struct command *t)
* donice is only called when it on the line by itself or with a +- value
*/
void
-/*ARGSUSED*/
donice(Char **v, struct command *t)
{
Char *cp;