summaryrefslogtreecommitdiffstats
path: root/bin/csh
diff options
context:
space:
mode:
authorsteve <steve@FreeBSD.org>1997-08-08 00:54:05 +0000
committersteve <steve@FreeBSD.org>1997-08-08 00:54:05 +0000
commit2ae4bfe0cf7c10b991b2c8c56db256ed69aedfb8 (patch)
tree2cede9545dd07ab7b5f1941775ce1b4dee35a206 /bin/csh
parentfe3edcd2a19bdb8f85935e9650b068bc7c87da7c (diff)
downloadFreeBSD-src-2ae4bfe0cf7c10b991b2c8c56db256ed69aedfb8.zip
FreeBSD-src-2ae4bfe0cf7c10b991b2c8c56db256ed69aedfb8.tar.gz
More minor nits (mostly using memove instead of memcpy).
Diffstat (limited to 'bin/csh')
-rw-r--r--bin/csh/csh.h8
-rw-r--r--bin/csh/extern.h4
-rw-r--r--bin/csh/func.c5
-rw-r--r--bin/csh/glob.c4
-rw-r--r--bin/csh/lex.c4
-rw-r--r--bin/csh/proc.c4
6 files changed, 13 insertions, 16 deletions
diff --git a/bin/csh/csh.h b/bin/csh/csh.h
index 6e257d2..f88f622 100644
--- a/bin/csh/csh.h
+++ b/bin/csh/csh.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)csh.h 8.1 (Berkeley) 5/31/93
- * $Id: csh.h,v 1.4 1997/02/22 14:01:41 peter Exp $
+ * $Id: csh.h,v 1.5 1997/08/07 21:42:04 steve Exp $
*/
/*
@@ -187,8 +187,8 @@ jmp_buf reslab;
#define setexit() (setjmp(reslab))
#define reset() longjmp(reslab, 1)
/* Should use structure assignment here */
-#define getexit(a) memcpy(((char *)(a)), (char *)reslab, sizeof reslab)
-#define resexit(a) memcpy((char *)reslab, (char *)(a), sizeof reslab)
+#define getexit(a) memmove((char *)(a), (char *)reslab, sizeof reslab)
+#define resexit(a) memmove((char *)reslab, (char *)(a), sizeof reslab)
Char *gointr; /* Label for an onintr transfer */
@@ -421,8 +421,6 @@ struct varent {
#define v_right v_link[1]
#define v_parent v_link[2]
-struct varent *adrof1();
-
#define adrof(v) adrof1(v, &shvhed)
#define value(v) value1(v, &shvhed)
diff --git a/bin/csh/extern.h b/bin/csh/extern.h
index f9ebd99..d49a3f1 100644
--- a/bin/csh/extern.h
+++ b/bin/csh/extern.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)extern.h 8.1 (Berkeley) 5/31/93
- * $Id$
+ * $Id: extern.h,v 1.4 1997/02/22 14:01:53 peter Exp $
*/
#include <sys/cdefs.h>
@@ -161,7 +161,7 @@ Char *globone __P((Char *, int));
int Gmatch __P((Char *, Char *));
void ginit __P((void));
Char **globall __P((Char **));
-void rscan __P((Char **, void (*)()));
+void rscan __P((Char **, void (*)(int)));
void tglob __P((Char **));
void trim __P((Char **));
#ifdef FILEC
diff --git a/bin/csh/func.c b/bin/csh/func.c
index d3b4714..25668cb 100644
--- a/bin/csh/func.c
+++ b/bin/csh/func.c
@@ -36,7 +36,7 @@
static char sccsid[] = "@(#)func.c 8.1 (Berkeley) 5/31/93";
#else
static const char rcsid[] =
- "$Id: func.c,v 1.7 1997/02/22 14:01:55 peter Exp $";
+ "$Id: func.c,v 1.8 1997/08/07 21:42:09 steve Exp $";
#endif
#endif /* not lint */
@@ -1206,7 +1206,6 @@ getval(lp, v)
Char **v;
{
float f;
- double atof();
Char *cp = *v++;
f = atof(short2str(cp));
@@ -1371,7 +1370,7 @@ dosuspend(v, t)
{
int ctpgrp;
- void (*old) ();
+ void (*old) __P((int));
if (loginsh)
stderror(ERR_SUSPLOG);
diff --git a/bin/csh/glob.c b/bin/csh/glob.c
index 1f0f109..78956a1 100644
--- a/bin/csh/glob.c
+++ b/bin/csh/glob.c
@@ -36,7 +36,7 @@
static char sccsid[] = "@(#)glob.c 8.1 (Berkeley) 5/31/93";
#else
static const char rcsid[] =
- "$Id: glob.c,v 1.8 1997/02/22 14:01:58 peter Exp $";
+ "$Id: glob.c,v 1.9 1997/08/07 21:42:09 steve Exp $";
#endif
#endif /* not lint */
@@ -557,7 +557,7 @@ ginit()
void
rscan(t, f)
Char **t;
- void (*f) ();
+ void (*f) __P((int));
{
Char *p;
diff --git a/bin/csh/lex.c b/bin/csh/lex.c
index fac2b7e..01c5ce3 100644
--- a/bin/csh/lex.c
+++ b/bin/csh/lex.c
@@ -36,7 +36,7 @@
static char sccsid[] = "@(#)lex.c 8.1 (Berkeley) 5/31/93";
#else
static const char rcsid[] =
- "$Id: lex.c,v 1.6 1997/02/22 14:02:01 peter Exp $";
+ "$Id: lex.c,v 1.7 1997/08/07 21:42:11 steve Exp $";
#endif
#endif /* not lint */
@@ -1508,7 +1508,7 @@ again:
goto again;
}
if (c > 0)
- memcpy(fbuf[buf] + off, ttyline, c * sizeof(Char));
+ memmove(fbuf[buf] + off, ttyline, c * sizeof(Char));
numleft = 0;
}
else {
diff --git a/bin/csh/proc.c b/bin/csh/proc.c
index 3627c31..70c42a3 100644
--- a/bin/csh/proc.c
+++ b/bin/csh/proc.c
@@ -36,7 +36,7 @@
static char sccsid[] = "@(#)proc.c 8.1 (Berkeley) 5/31/93";
#else
static const char rcsid[] =
- "$Id: proc.c,v 1.4 1997/02/22 14:02:06 peter Exp $";
+ "$Id: proc.c,v 1.5 1997/08/07 21:42:15 steve Exp $";
#endif
#endif /* not lint */
@@ -1172,7 +1172,7 @@ pfind(cp)
}
if (np)
return (np);
- stderror((ERR_NAME | cp[1]) == '?' ? ERR_JOBPAT : ERR_NOSUCHJOB);
+ stderror(ERR_NAME | (cp[1] == '?' ? ERR_JOBPAT : ERR_NOSUCHJOB));
/* NOTREACHED */
return (0);
}
OpenPOWER on IntegriCloud