summaryrefslogtreecommitdiffstats
path: root/bin/ed
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ed')
-rw-r--r--bin/ed/buf.c6
-rw-r--r--bin/ed/cbc.c6
-rw-r--r--bin/ed/glbl.c7
-rw-r--r--bin/ed/io.c6
-rw-r--r--bin/ed/main.c6
-rw-r--r--bin/ed/re.c6
-rw-r--r--bin/ed/sub.c6
-rw-r--r--bin/ed/undo.c6
8 files changed, 16 insertions, 33 deletions
diff --git a/bin/ed/buf.c b/bin/ed/buf.c
index 4f36602..db1f0e9 100644
--- a/bin/ed/buf.c
+++ b/bin/ed/buf.c
@@ -26,10 +26,8 @@
* SUCH DAMAGE.
*/
-#ifndef lint
-static const char rcsid[] =
- "$FreeBSD$";
-#endif /* not lint */
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
#include <sys/file.h>
#include <sys/stat.h>
diff --git a/bin/ed/cbc.c b/bin/ed/cbc.c
index 9802bd6..b0b0153 100644
--- a/bin/ed/cbc.c
+++ b/bin/ed/cbc.c
@@ -35,10 +35,8 @@
* SUCH DAMAGE.
*/
-#ifndef lint
-static const char rcsid[] =
- "$FreeBSD$";
-#endif /* not lint */
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
#include <sys/types.h>
#include <errno.h>
diff --git a/bin/ed/glbl.c b/bin/ed/glbl.c
index 06c6848..11dcc19 100644
--- a/bin/ed/glbl.c
+++ b/bin/ed/glbl.c
@@ -26,13 +26,10 @@
* SUCH DAMAGE.
*/
-#ifndef lint
-static const char rcsid[] =
- "$FreeBSD$";
-#endif /* not lint */
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
#include <sys/types.h>
-
#include <sys/ioctl.h>
#include <sys/wait.h>
diff --git a/bin/ed/io.c b/bin/ed/io.c
index b0edf24..9ea8303 100644
--- a/bin/ed/io.c
+++ b/bin/ed/io.c
@@ -25,10 +25,8 @@
* SUCH DAMAGE.
*/
-#ifndef lint
-static const char rcsid[] =
- "$FreeBSD$";
-#endif /* not lint */
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
#include "ed.h"
diff --git a/bin/ed/main.c b/bin/ed/main.c
index 13e0b8a..349dbbf 100644
--- a/bin/ed/main.c
+++ b/bin/ed/main.c
@@ -32,10 +32,8 @@ static const char copyright[] =
All rights reserved.\n";
#endif /* not lint */
-#ifndef lint
-static const char rcsid[] =
- "$FreeBSD$";
-#endif /* not lint */
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
/*
* CREDITS
diff --git a/bin/ed/re.c b/bin/ed/re.c
index 5cd43fa..234824e 100644
--- a/bin/ed/re.c
+++ b/bin/ed/re.c
@@ -26,10 +26,8 @@
* SUCH DAMAGE.
*/
-#ifndef lint
-static const char rcsid[] =
- "$FreeBSD$";
-#endif /* not lint */
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
#include "ed.h"
diff --git a/bin/ed/sub.c b/bin/ed/sub.c
index b8d215b..1c44328 100644
--- a/bin/ed/sub.c
+++ b/bin/ed/sub.c
@@ -26,10 +26,8 @@
* SUCH DAMAGE.
*/
-#ifndef lint
-static const char rcsid[] =
- "$FreeBSD$";
-#endif /* not lint */
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
#include "ed.h"
diff --git a/bin/ed/undo.c b/bin/ed/undo.c
index 73d488c..6a8ca9e 100644
--- a/bin/ed/undo.c
+++ b/bin/ed/undo.c
@@ -25,10 +25,8 @@
* SUCH DAMAGE.
*/
-#ifndef lint
-static const char rcsid[] =
- "$FreeBSD$";
-#endif /* not lint */
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
#include "ed.h"
OpenPOWER on IntegriCloud