SCCS-vsn: usr.bin/sccs/sccs.c 1.46
** Copyright 1980 Regents of the University of California
*/
** 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 ********************/
\f
/******************* Configuration Information ********************/
*np = NULL;
/* get all the files that we unedited successfully */
*np = NULL;
/* get all the files that we unedited successfully */
rval = command(&ap[1], FALSE, "get");
break;
rval = command(&ap[1], FALSE, "get");
break;
execv(progpath, argv);
syserr("cannot execute %s", progpath);
exit(EX_UNAVAILABLE);
execv(progpath, argv);
syserr("cannot execute %s", progpath);
exit(EX_UNAVAILABLE);
char *name;
{
register char *p;
char *name;
{
register char *p;
char buf[512];
extern char *malloc();
extern char *rindex();
char buf[512];
extern char *malloc();
extern char *rindex();
int mode;
{
struct direct dir;
int mode;
{
struct direct dir;
char buf[100];
char pline[120];
register FILE *dirfd;
char buf[100];
char pline[120];
register FILE *dirfd;
- 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;
{
if (dir.d_ino == 0 || strncmp(dir.d_name, "s.", 2) != 0)
continue;
char *pfn;
static char tfn[] = "/tmp/sccsXXXXX";
FILE *tfp;
char *pfn;
static char tfn[] = "/tmp/sccsXXXXX";
FILE *tfp;
register char *q;
bool delete = FALSE;
bool others = FALSE;
register char *q;
bool delete = FALSE;
bool others = FALSE;
usrerr(f, p1, p2, p3)
char *f;
{
usrerr(f, p1, p2, p3)
char *f;
{
syserr(f, p1, p2, p3)
char *f;
{
syserr(f, p1, p2, p3)
char *f;
{
exit(EX_SOFTWARE);
else
{
exit(EX_SOFTWARE);
else
{