diff options
| author | tb <> | 2025-05-04 10:47:02 +0000 |
|---|---|---|
| committer | tb <> | 2025-05-04 10:47:02 +0000 |
| commit | 22ec584fb73b85c9becb0fb799e459cc1972f677 (patch) | |
| tree | afd95e64d1e1a46752229fa82cb9cfd78dffe105 /src | |
| parent | 08bcfcbc2c4b233a4604e2f883624f517d4bb468 (diff) | |
| download | openbsd-22ec584fb73b85c9becb0fb799e459cc1972f677.tar.gz openbsd-22ec584fb73b85c9becb0fb799e459cc1972f677.tar.bz2 openbsd-22ec584fb73b85c9becb0fb799e459cc1972f677.zip | |
const correct first argument of pitem_new()
Makes upcoming changes in regress less ugly.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libssl/pqueue.c | 4 | ||||
| -rw-r--r-- | src/lib/libssl/pqueue.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libssl/pqueue.c b/src/lib/libssl/pqueue.c index 602969deb0..580b878534 100644 --- a/src/lib/libssl/pqueue.c +++ b/src/lib/libssl/pqueue.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: pqueue.c,v 1.5 2014/06/12 15:49:31 deraadt Exp $ */ | 1 | /* $OpenBSD: pqueue.c,v 1.6 2025/05/04 10:47:02 tb Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * DTLS implementation written by Nagendra Modadugu | 3 | * DTLS implementation written by Nagendra Modadugu |
| 4 | * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. | 4 | * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. |
| @@ -68,7 +68,7 @@ typedef struct _pqueue { | |||
| 68 | } pqueue_s; | 68 | } pqueue_s; |
| 69 | 69 | ||
| 70 | pitem * | 70 | pitem * |
| 71 | pitem_new(unsigned char *prio64be, void *data) | 71 | pitem_new(const unsigned char *prio64be, void *data) |
| 72 | { | 72 | { |
| 73 | pitem *item = malloc(sizeof(pitem)); | 73 | pitem *item = malloc(sizeof(pitem)); |
| 74 | 74 | ||
diff --git a/src/lib/libssl/pqueue.h b/src/lib/libssl/pqueue.h index cdda4a3961..67087775bd 100644 --- a/src/lib/libssl/pqueue.h +++ b/src/lib/libssl/pqueue.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: pqueue.h,v 1.4 2016/11/04 18:28:58 guenther Exp $ */ | 1 | /* $OpenBSD: pqueue.h,v 1.5 2025/05/04 10:47:02 tb Exp $ */ |
| 2 | 2 | ||
| 3 | /* | 3 | /* |
| 4 | * DTLS implementation written by Nagendra Modadugu | 4 | * DTLS implementation written by Nagendra Modadugu |
| @@ -73,7 +73,7 @@ typedef struct _pitem { | |||
| 73 | 73 | ||
| 74 | typedef struct _pitem *piterator; | 74 | typedef struct _pitem *piterator; |
| 75 | 75 | ||
| 76 | pitem *pitem_new(unsigned char *prio64be, void *data); | 76 | pitem *pitem_new(const unsigned char *prio64be, void *data); |
| 77 | void pitem_free(pitem *item); | 77 | void pitem_free(pitem *item); |
| 78 | 78 | ||
| 79 | pqueue pqueue_new(void); | 79 | pqueue pqueue_new(void); |
