summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/bgpd.h
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2005-11-02 15:34:44 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2005-11-02 15:34:44 +0000
commite84c8ef494253da47889c7fee137e7f3fbf23211 (patch)
tree32f8d517d6f4da4a91d775552758419dcdbe9dd6 /usr.sbin/bgpd/bgpd.h
parent8babe8318ec5d7cd2bdf6efb3218ea6f1f19fcb7 (diff)
Mark some additional function arguments as const.
Diffstat (limited to 'usr.sbin/bgpd/bgpd.h')
-rw-r--r--usr.sbin/bgpd/bgpd.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/bgpd/bgpd.h b/usr.sbin/bgpd/bgpd.h
index 5fdf69f66da..e8cd1e3e5a1 100644
--- a/usr.sbin/bgpd/bgpd.h
+++ b/usr.sbin/bgpd/bgpd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: bgpd.h,v 1.180 2005/11/01 10:58:29 claudio Exp $ */
+/* $OpenBSD: bgpd.h,v 1.181 2005/11/02 15:34:43 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -649,7 +649,7 @@ int bgpd_redistribute(int, struct kroute *, struct kroute6 *);
/* buffer.c */
struct buf *buf_open(size_t);
-int buf_add(struct buf *, void *, size_t);
+int buf_add(struct buf *, const void *, size_t);
void *buf_reserve(struct buf *, size_t);
int buf_close(struct msgbuf *, struct buf *);
int buf_write(int, struct buf *);
@@ -687,10 +687,10 @@ void imsg_init(struct imsgbuf *, int);
int imsg_read(struct imsgbuf *);
int imsg_get(struct imsgbuf *, struct imsg *);
int imsg_compose(struct imsgbuf *, enum imsg_type, u_int32_t, pid_t, int,
- void *, u_int16_t);
+ const void *, u_int16_t);
struct buf *imsg_create(struct imsgbuf *, enum imsg_type, u_int32_t, pid_t,
u_int16_t);
-int imsg_add(struct buf *, void *, u_int16_t);
+int imsg_add(struct buf *, const void *, u_int16_t);
int imsg_close(struct imsgbuf *, struct buf *);
void imsg_free(struct imsg *);
int imsg_get_fd(struct imsgbuf *);
@@ -729,11 +729,11 @@ int pftable_addr_remove(struct pftable_msg *);
int pftable_commit(void);
/* name2id.c */
-u_int16_t rtlabel_name2id(char *);
+u_int16_t rtlabel_name2id(const char *);
const char *rtlabel_id2name(u_int16_t);
void rtlabel_unref(u_int16_t);
void rtlabel_ref(u_int16_t);
-u_int16_t pftable_name2id(char *);
+u_int16_t pftable_name2id(const char *);
const char *pftable_id2name(u_int16_t);
void pftable_unref(u_int16_t);
void pftable_ref(u_int16_t);