SCCS-vsn: usr.bin/sccs/sccs.c 5.2
#endif not lint
#ifndef lint
#endif not lint
#ifndef lint
-static char sccsid[] = "@(#)sccs.c 5.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)sccs.c 5.2 (Berkeley) %G%";
#endif not lint
# include <stdio.h>
#endif not lint
# include <stdio.h>
struct direct *dir;
char buf[FBUFSIZ];
char *bufend;
struct direct *dir;
char buf[FBUFSIZ];
char *bufend;
register char *basefile;
bool gotedit;
bool gotpfent;
register char *basefile;
bool gotedit;
bool gotpfent;
gstrcat(buf, SccsPath, sizeof(buf));
bufend = &buf[strlen(buf)];
gstrcat(buf, SccsPath, sizeof(buf));
bufend = &buf[strlen(buf)];
- dirfd = opendir(buf);
- if (dirfd == NULL)
+ dirp = opendir(buf);
+ if (dirp == NULL)
{
usrerr("cannot open %s", buf);
return (EX_NOINPUT);
{
usrerr("cannot open %s", buf);
return (EX_NOINPUT);
- while (dir = readdir(dirfd)) {
+ while (dir = readdir(dirp)) {
if (strncmp(dir->d_name, "s.", 2) != 0)
continue;
if (strncmp(dir->d_name, "s.", 2) != 0)
continue;
}
/* cleanup & report results */
}
/* cleanup & report results */
if (!gotedit && mode == INFOC)
{
printf("Nothing being edited");
if (!gotedit && mode == INFOC)
{
printf("Nothing being edited");