summaryrefslogtreecommitdiff
path: root/usr.bin/sed/defs.h
diff options
context:
space:
mode:
authorKiyoshi Aman <kiyoshi.aman+adelie@gmail.com>2019-06-04 23:47:29 -0500
committerKiyoshi Aman <kiyoshi.aman+adelie@gmail.com>2019-06-04 23:47:29 -0500
commit781dfa351934e5c0f6927456458a9f1a19442107 (patch)
tree67b33f6068204621d67c4d39afefd8c3356ec5d6 /usr.bin/sed/defs.h
parentf7b566bd6bf844b0c53abdb86ae235cac1012cb1 (diff)
downloaduserland-781dfa351934e5c0f6927456458a9f1a19442107.tar.gz
userland-781dfa351934e5c0f6927456458a9f1a19442107.tar.bz2
userland-781dfa351934e5c0f6927456458a9f1a19442107.tar.xz
userland-781dfa351934e5c0f6927456458a9f1a19442107.zip
usr.bin/sed: make buildable
Diffstat (limited to 'usr.bin/sed/defs.h')
-rw-r--r--usr.bin/sed/defs.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/sed/defs.h b/usr.bin/sed/defs.h
index b564115..d2f7157 100644
--- a/usr.bin/sed/defs.h
+++ b/usr.bin/sed/defs.h
@@ -36,6 +36,8 @@
* $FreeBSD: head/usr.bin/sed/defs.h 192732 2009-05-25 06:45:33Z brian $
*/
+#include <stdbool.h>
+
/*
* Types of address specifications
*/
@@ -68,7 +70,7 @@ struct s_subst {
int wfd; /* Cached file descriptor */
regex_t *re; /* Regular expression */
unsigned int maxbref; /* Largest backreference. */
- u_long linenum; /* Line number. */
+ unsigned long linenum; /* Line number. */
char *new; /* Replacement text */
};
@@ -94,7 +96,7 @@ struct s_tr {
struct s_command {
struct s_command *next; /* Pointer to next command */
struct s_addr *a1, *a2; /* Start and end address */
- u_long startline; /* Start line number or zero */
+ unsigned long startline; /* Start line number or zero */
char *t; /* Text for : a c i r w */
union {
struct s_command *c; /* Command(s) for b t { */
@@ -103,7 +105,7 @@ struct s_command {
int fd; /* File descriptor for w */
} u;
char code; /* Command code */
- u_int nonsel:1; /* True if ! */
+ bool nonsel; /* True if ! */
};
/*