summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2015-11-09 04:10:57 +0000
committerderaadt <deraadt@openbsd.org>2015-11-09 04:10:57 +0000
commit3bd24af96d3ae88b1b38038cd18ef5e3963ee8bb (patch)
tree1dcb6a1a356f4a62481d423ea3cbac59fb1460b8
parentclose_getchr() is now a noop (diff)
downloadwireguard-openbsd-3bd24af96d3ae88b1b38038cd18ef5e3963ee8bb.tar.xz
wireguard-openbsd-3bd24af96d3ae88b1b38038cd18ef5e3963ee8bb.zip
cleanup struct definitions
-rw-r--r--usr.bin/less/cmdbuf.c3
-rw-r--r--usr.bin/less/decode.c3
-rw-r--r--usr.bin/less/less.h6
-rw-r--r--usr.bin/less/lesskey.c9
-rw-r--r--usr.bin/less/linenum.c3
-rw-r--r--usr.bin/less/option.h6
6 files changed, 10 insertions, 20 deletions
diff --git a/usr.bin/less/cmdbuf.c b/usr.bin/less/cmdbuf.c
index 2a942488b5d..32b8a233e6b 100644
--- a/usr.bin/less/cmdbuf.c
+++ b/usr.bin/less/cmdbuf.c
@@ -55,8 +55,7 @@ char closequote = '"';
/*
* A mlist structure represents a command history.
*/
-struct mlist
-{
+struct mlist {
struct mlist *next;
struct mlist *prev;
struct mlist *curr_mp;
diff --git a/usr.bin/less/decode.c b/usr.bin/less/decode.c
index 85db7eadcff..e1ea0d56119 100644
--- a/usr.bin/less/decode.c
+++ b/usr.bin/less/decode.c
@@ -215,8 +215,7 @@ static unsigned char edittable[] =
/*
* Structure to support a list of command tables.
*/
-struct tablelist
-{
+struct tablelist {
struct tablelist *t_next;
char *t_start;
char *t_end;
diff --git a/usr.bin/less/less.h b/usr.bin/less/less.h
index 949ba138fcf..c58e591e183 100644
--- a/usr.bin/less/less.h
+++ b/usr.bin/less/less.h
@@ -109,8 +109,7 @@ struct scrpos {
int ln;
};
-typedef union parg
-{
+typedef union parg {
char *p_string;
int p_int;
LINENUM p_linenum;
@@ -118,8 +117,7 @@ typedef union parg
#define NULL_PARG ((PARG *)NULL)
-struct textlist
-{
+struct textlist {
char *string;
char *endstring;
};
diff --git a/usr.bin/less/lesskey.c b/usr.bin/less/lesskey.c
index c639651014d..35d14ac6521 100644
--- a/usr.bin/less/lesskey.c
+++ b/usr.bin/less/lesskey.c
@@ -85,16 +85,14 @@
#include "lesskey.h"
#include "cmd.h"
-struct cmdname
-{
+struct cmdname {
char *cn_name;
int cn_action;
};
static void lkerr(char *s);
-struct cmdname cmdnames[] =
-{
+struct cmdname cmdnames[] = {
{ "back-bracket", A_B_BRACKET },
{ "back-line", A_B_LINE },
{ "back-line-force", A_BF_LINE },
@@ -180,8 +178,7 @@ struct cmdname editnames[] = {
{ NULL, 0 }
};
-struct table
-{
+struct table {
struct cmdname *names;
char *pbuffer;
char buffer[MAX_USERCMD];
diff --git a/usr.bin/less/linenum.c b/usr.bin/less/linenum.c
index 2bc554408e2..e3c4e592601 100644
--- a/usr.bin/less/linenum.c
+++ b/usr.bin/less/linenum.c
@@ -39,8 +39,7 @@
* Structure to keep track of a line number and the associated file position.
* A doubly-linked circular list of line numbers is kept ordered by line number.
*/
-struct linenum_info
-{
+struct linenum_info {
struct linenum_info *next; /* Link to next in the list */
struct linenum_info *prev; /* Line to previous in the list */
off_t pos; /* File position */
diff --git a/usr.bin/less/option.h b/usr.bin/less/option.h
index 4fc00e2608e..18aaf71da3c 100644
--- a/usr.bin/less/option.h
+++ b/usr.bin/less/option.h
@@ -47,16 +47,14 @@
/* Error code from findopt_name */
#define OPT_AMBIG 1
-struct optname
-{
+struct optname {
char *oname; /* Long (GNU-style) option name */
struct optname *onext; /* List of synonymous option names */
};
#define OPTNAME_MAX 32 /* Max length of long option name */
-struct loption
-{
+struct loption {
char oletter; /* The controlling letter (a-z) */
struct optname *onames; /* Long (GNU-style) option name */
int otype; /* Type of the option */