summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorjake <jake@FreeBSD.org>2000-05-26 02:09:24 +0000
committerjake <jake@FreeBSD.org>2000-05-26 02:09:24 +0000
commit961b97d43458f3c57241940cabebb3bedf7e4c00 (patch)
tree6014972d9b90b4e3a8b20dbea641a88cf6355c13 /usr.sbin
parent06b64672180d9b04ae6d35db819c854df3c3c684 (diff)
downloadFreeBSD-src-961b97d43458f3c57241940cabebb3bedf7e4c00.zip
FreeBSD-src-961b97d43458f3c57241940cabebb3bedf7e4c00.tar.gz
Back out the previous change to the queue(3) interface.
It was not discussed and should probably not happen. Requested by: msmith and others
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/i4b/isdnd/isdnd.h2
-rw-r--r--usr.sbin/i4b/isdnd/monitor.c6
-rw-r--r--usr.sbin/lpr/chkprintcap/chkprintcap.c4
-rw-r--r--usr.sbin/lpr/common_source/lp.h12
-rw-r--r--usr.sbin/mlxcontrol/mlxcontrol.h12
-rw-r--r--usr.sbin/mtree/excludes.c4
-rw-r--r--usr.sbin/pw/pw.h4
-rw-r--r--usr.sbin/syslogd/syslogd.c4
-rw-r--r--usr.sbin/tzsetup/tzsetup.c4
-rw-r--r--usr.sbin/usbd/usbd.c4
-rw-r--r--usr.sbin/ypserv/yp_dblookup.c4
-rw-r--r--usr.sbin/ypserv/yp_dnslookup.c4
12 files changed, 32 insertions, 32 deletions
diff --git a/usr.sbin/i4b/isdnd/isdnd.h b/usr.sbin/i4b/isdnd/isdnd.h
index 24e57fa..9565915 100644
--- a/usr.sbin/i4b/isdnd/isdnd.h
+++ b/usr.sbin/i4b/isdnd/isdnd.h
@@ -471,7 +471,7 @@ struct rarr {
#ifdef I4B_EXTERNAL_MONITOR
/* for each rights entry we keep one of this structures around: */
struct monitor_rights {
- TAILQ_ENTRY(struct monitor_rights) list; /* a list of this structures */
+ TAILQ_ENTRY(monitor_rights) list; /* a list of this structures */
char name[FILENAME_MAX]; /* net/host spec or filename */
int rights; /* bitmask of allowed acces rights */
u_int32_t net; /* net/host address (host byte order!) */
diff --git a/usr.sbin/i4b/isdnd/monitor.c b/usr.sbin/i4b/isdnd/monitor.c
index 79d7ed0..dd6d2cd 100644
--- a/usr.sbin/i4b/isdnd/monitor.c
+++ b/usr.sbin/i4b/isdnd/monitor.c
@@ -75,21 +75,21 @@ void monitor_fixup_rights()
#endif
-static TAILQ_HEAD(rights_q, struct monitor_rights) rights = TAILQ_HEAD_INITIALIZER(rights);
+static TAILQ_HEAD(rights_q, monitor_rights) rights = TAILQ_HEAD_INITIALIZER(rights);
static struct monitor_rights * local_rights = NULL; /* entry for local socket */
/* for each active monitor connection we have one of this: */
struct monitor_connection {
- TAILQ_ENTRY(struct monitor_connection) connections;
+ TAILQ_ENTRY(monitor_connection) connections;
int sock; /* socket for this connection */
int rights; /* active rights for this connection */
int events; /* bitmask of events client is interested in */
char source[FILENAME_MAX];
};
-static TAILQ_HEAD(connections_tq, struct monitor_connection) connections = TAILQ_HEAD_INITIALIZER(connections);
+static TAILQ_HEAD(connections_tq, monitor_connection) connections = TAILQ_HEAD_INITIALIZER(connections);
/* local prototypes */
static int cmp_rights(const struct monitor_rights *pa, const struct monitor_rights *pb);
diff --git a/usr.sbin/lpr/chkprintcap/chkprintcap.c b/usr.sbin/lpr/chkprintcap/chkprintcap.c
index 27ff7ca..8b84656 100644
--- a/usr.sbin/lpr/chkprintcap/chkprintcap.c
+++ b/usr.sbin/lpr/chkprintcap/chkprintcap.c
@@ -152,13 +152,13 @@ interpret_error(const struct printer *pp, int error)
* a single loop.
*/
struct dirlist {
- LIST_ENTRY(struct dirlist) link;
+ LIST_ENTRY(dirlist) link;
struct stat stab;
char *path;
char *printer;
};
-static LIST_HEAD(, struct dirlist) dirlist;
+static LIST_HEAD(, dirlist) dirlist;
static int
lessp(const struct dirlist *a, const struct dirlist *b)
diff --git a/usr.sbin/lpr/common_source/lp.h b/usr.sbin/lpr/common_source/lp.h
index e2bfc15..c7a960e 100644
--- a/usr.sbin/lpr/common_source/lp.h
+++ b/usr.sbin/lpr/common_source/lp.h
@@ -91,24 +91,24 @@ struct printer {
* reversed in process.
*/
struct req_user {
- TAILQ_ENTRY(struct req_user) ru_link; /* macro glue */
+ TAILQ_ENTRY(req_user) ru_link; /* macro glue */
char ru_uname[1]; /* name of user */
};
-TAILQ_HEAD(req_user_head, struct req_user);
+TAILQ_HEAD(req_user_head, req_user);
struct req_file {
- TAILQ_ENTRY(struct req_file) rf_link; /* macro glue */
+ TAILQ_ENTRY(req_file) rf_link; /* macro glue */
char rf_type; /* type (lowercase cf file letter) of file */
char *rf_prettyname; /* user-visible name of file */
char rf_fname[1]; /* name of file */
};
-TAILQ_HEAD(req_file_head, struct req_file);
+TAILQ_HEAD(req_file_head, req_file);
struct req_jobid {
- TAILQ_ENTRY(struct req_jobid) rj_link; /* macro glue */
+ TAILQ_ENTRY(req_jobid) rj_link; /* macro glue */
int rj_job; /* job number */
};
-TAILQ_HEAD(req_jobid_head, struct req_jobid);
+TAILQ_HEAD(req_jobid_head, req_jobid);
/*
* Encapsulate all the information relevant to a request in the
diff --git a/usr.sbin/mlxcontrol/mlxcontrol.h b/usr.sbin/mlxcontrol/mlxcontrol.h
index e8f322f..f0225b5 100644
--- a/usr.sbin/mlxcontrol/mlxcontrol.h
+++ b/usr.sbin/mlxcontrol/mlxcontrol.h
@@ -58,7 +58,7 @@ extern void mlx_print_phys_drv(struct mlx_phys_drv *drv, int channel, int target
struct conf_phys_drv
{
- TAILQ_ENTRY(struct conf_phys_drv) pd_link;
+ TAILQ_ENTRY(conf_phys_drv) pd_link;
int pd_bus;
int pd_target;
struct mlx_phys_drv pd_drv;
@@ -66,23 +66,23 @@ struct conf_phys_drv
struct conf_span
{
- TAILQ_ENTRY(struct conf_span) s_link;
+ TAILQ_ENTRY(conf_span) s_link;
struct conf_phys_drv *s_drvs[8];
struct mlx_sys_drv_span s_span;
};
struct conf_sys_drv
{
- TAILQ_ENTRY(struct conf_sys_drv) sd_link;
+ TAILQ_ENTRY(conf_sys_drv) sd_link;
struct conf_span *sd_spans[4];
struct mlx_sys_drv sd_drv;
};
struct conf_config
{
- TAILQ_HEAD(, struct conf_phys_drv) cc_phys_drvs;
- TAILQ_HEAD(, struct conf_span) cc_spans;
- TAILQ_HEAD(, struct conf_sys_drv) cc_sys_drvs;
+ TAILQ_HEAD(,conf_phys_drv) cc_phys_drvs;
+ TAILQ_HEAD(,conf_span) cc_spans;
+ TAILQ_HEAD(,conf_sys_drv) cc_sys_drvs;
struct conf_sys_drv *cc_drives[32];
struct mlx_core_cfg cc_cfg;
};
diff --git a/usr.sbin/mtree/excludes.c b/usr.sbin/mtree/excludes.c
index 7659eec..47ab298 100644
--- a/usr.sbin/mtree/excludes.c
+++ b/usr.sbin/mtree/excludes.c
@@ -48,11 +48,11 @@ static const char rcsid[] =
* so it's OK to use a stupid algorithm.
*/
struct exclude {
- LIST_ENTRY(struct exclude) link;
+ LIST_ENTRY(exclude) link;
const char *glob;
int pathname;
};
-static LIST_HEAD(, struct exclude) excludes;
+static LIST_HEAD(, exclude) excludes;
void
init_excludes(void)
diff --git a/usr.sbin/pw/pw.h b/usr.sbin/pw/pw.h
index 7718039..aa437ec 100644
--- a/usr.sbin/pw/pw.h
+++ b/usr.sbin/pw/pw.h
@@ -66,10 +66,10 @@ struct carg
{
int ch;
char *val;
- LIST_ENTRY(struct carg) list;
+ LIST_ENTRY(carg) list;
};
-extern LIST_HEAD(cargs, struct carg) arglist;
+extern LIST_HEAD(cargs, carg) arglist;
struct userconf
{
diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c
index 484b3c6..ca5391d 100644
--- a/usr.sbin/syslogd/syslogd.c
+++ b/usr.sbin/syslogd/syslogd.c
@@ -178,13 +178,13 @@ struct filed {
* Queue of about-to-be dead processes we should watch out for.
*/
-TAILQ_HEAD(stailhead, struct deadq_entry) deadq_head;
+TAILQ_HEAD(stailhead, deadq_entry) deadq_head;
struct stailhead *deadq_headp;
struct deadq_entry {
pid_t dq_pid;
int dq_timeout;
- TAILQ_ENTRY(struct deadq_entry) dq_entries;
+ TAILQ_ENTRY(deadq_entry) dq_entries;
};
/*
diff --git a/usr.sbin/tzsetup/tzsetup.c b/usr.sbin/tzsetup/tzsetup.c
index 45643e7..a513870 100644
--- a/usr.sbin/tzsetup/tzsetup.c
+++ b/usr.sbin/tzsetup/tzsetup.c
@@ -146,12 +146,12 @@ struct country {
int nzones;
char *filename; /* use iff nzones < 0 */
struct continent *continent; /* use iff nzones < 0 */
- TAILQ_HEAD(, struct zone) zones; /* use iff nzones > 0 */
+ TAILQ_HEAD(, zone) zones; /* use iff nzones > 0 */
dialogMenuItem *submenu; /* use iff nzones > 0 */
};
struct zone {
- TAILQ_ENTRY(struct zone) link;
+ TAILQ_ENTRY(zone) link;
char *descr;
char *filename;
struct continent *continent;
diff --git a/usr.sbin/usbd/usbd.c b/usr.sbin/usbd/usbd.c
index 899fd95..06e7637 100644
--- a/usr.sbin/usbd/usbd.c
+++ b/usr.sbin/usbd/usbd.c
@@ -143,10 +143,10 @@ typedef struct action_s {
char *attach; /* commands to execute */
char *detach;
- STAILQ_ENTRY(struct action_s) next;
+ STAILQ_ENTRY(action_s) next;
} action_t;
-STAILQ_HEAD(action_list, struct action_s) actions = STAILQ_HEAD_INITIALIZER(actions);
+STAILQ_HEAD(action_list, action_s) actions = STAILQ_HEAD_INITIALIZER(actions);
typedef struct action_match_s {
action_t *action;
diff --git a/usr.sbin/ypserv/yp_dblookup.c b/usr.sbin/ypserv/yp_dblookup.c
index a9ce0ce..f558b05 100644
--- a/usr.sbin/ypserv/yp_dblookup.c
+++ b/usr.sbin/ypserv/yp_dblookup.c
@@ -79,11 +79,11 @@ struct dbent {
int flags;
};
-static CIRCLEQ_HEAD(circlehead, struct circleq_entry) qhead;
+static CIRCLEQ_HEAD(circlehead, circleq_entry) qhead;
struct circleq_entry {
struct dbent *dbptr;
- CIRCLEQ_ENTRY(struct circleq_entry) links;
+ CIRCLEQ_ENTRY(circleq_entry) links;
};
/*
diff --git a/usr.sbin/ypserv/yp_dnslookup.c b/usr.sbin/ypserv/yp_dnslookup.c
index 1ef76aa..3a62694 100644
--- a/usr.sbin/ypserv/yp_dnslookup.c
+++ b/usr.sbin/ypserv/yp_dnslookup.c
@@ -105,7 +105,7 @@ static char *parse(hp)
extern struct hostent *__dns_getanswer __P((char *, int, char *, int));
-static CIRCLEQ_HEAD(dns_qhead, struct circleq_dnsentry) qhead;
+static CIRCLEQ_HEAD(dns_qhead, circleq_dnsentry) qhead;
struct circleq_dnsentry {
SVCXPRT *xprt;
@@ -119,7 +119,7 @@ struct circleq_dnsentry {
char **domain;
char *name;
struct in_addr addr;
- CIRCLEQ_ENTRY(struct circleq_dnsentry) links;
+ CIRCLEQ_ENTRY(circleq_dnsentry) links;
};
static int pending = 0;
OpenPOWER on IntegriCloud