** Copyright 1980 Regents of the University of California
*/
-static char SccsId[] = "@(#)sccs.c 1.45 %G%";
+static char SccsId[] = "@(#)sccs.c 1.46 %G%";
\f
/******************* Configuration Information ********************/
*np = NULL;
/* get all the files that we unedited successfully */
- if (i > 0)
+ if (np > &ap[1])
rval = command(&ap[1], FALSE, "get");
break;
execv(progpath, argv);
syserr("cannot execute %s", progpath);
exit(EX_UNAVAILABLE);
+ /*NOTREACHED*/
}
\f
/*
char *name;
{
register char *p;
- register char c;
char buf[512];
extern char *malloc();
extern char *rindex();
int mode;
{
struct direct dir;
- struct stat stbuf;
char buf[100];
char pline[120];
register FILE *dirfd;
*/
gotedit = FALSE;
- while (fread(&dir, sizeof dir, 1, dirfd) != NULL)
+ while (fread((char *)&dir, sizeof dir, 1, dirfd) != NULL)
{
if (dir.d_ino == 0 || strncmp(dir.d_name, "s.", 2) != 0)
continue;
char *pfn;
static char tfn[] = "/tmp/sccsXXXXX";
FILE *tfp;
- register char *p;
register char *q;
bool delete = FALSE;
bool others = FALSE;
** none.
*/
+/*VARARGS1*/
usrerr(f, p1, p2, p3)
char *f;
{
** none.
*/
+/*VARARGS1*/
syserr(f, p1, p2, p3)
char *f;
{
exit(EX_SOFTWARE);
else
{
- perror(0);
+ perror(NULL);
exit(EX_OSERR);
}
}