projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
intuit the appropriate DEV_BSIZE from fsbtodb macro
[unix-history]
/
usr
/
src
/
usr.bin
/
sccs
/
sccs.c
diff --git
a/usr/src/usr.bin/sccs/sccs.c
b/usr/src/usr.bin/sccs/sccs.c
index
8f3a613
..
f1d2707
100644
(file)
--- a/
usr/src/usr.bin/sccs/sccs.c
+++ b/
usr/src/usr.bin/sccs/sccs.c
@@
-11,7
+11,7
@@
char copyright[] =
#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>
@@
-898,7
+898,7
@@
clean(mode, argv)
struct direct *dir;
char buf[FBUFSIZ];
char *bufend;
struct direct *dir;
char buf[FBUFSIZ];
char *bufend;
- register DIR *dir
fd
;
+ register DIR *dir
p
;
register char *basefile;
bool gotedit;
bool gotpfent;
register char *basefile;
bool gotedit;
bool gotpfent;
@@
-962,8
+962,8
@@
clean(mode, argv)
gstrcat(buf, SccsPath, sizeof(buf));
bufend = &buf[strlen(buf)];
gstrcat(buf, SccsPath, sizeof(buf));
bufend = &buf[strlen(buf)];
- dir
fd
= opendir(buf);
- if (dir
fd
== NULL)
+ dir
p
= opendir(buf);
+ if (dir
p
== NULL)
{
usrerr("cannot open %s", buf);
return (EX_NOINPUT);
{
usrerr("cannot open %s", buf);
return (EX_NOINPUT);
@@
-976,7
+976,7
@@
clean(mode, argv)
*/
gotedit = FALSE;
*/
gotedit = FALSE;
- while (dir = readdir(dir
fd
)) {
+ while (dir = readdir(dir
p
)) {
if (strncmp(dir->d_name, "s.", 2) != 0)
continue;
if (strncmp(dir->d_name, "s.", 2) != 0)
continue;
@@
-1025,7
+1025,7
@@
clean(mode, argv)
}
/* cleanup & report results */
}
/* cleanup & report results */
- closedir(dir
fd
);
+ closedir(dir
p
);
if (!gotedit && mode == INFOC)
{
printf("Nothing being edited");
if (!gotedit && mode == INFOC)
{
printf("Nothing being edited");