diff options
author | tb <> | 2025-05-04 10:47:02 +0000 |
---|---|---|
committer | tb <> | 2025-05-04 10:47:02 +0000 |
commit | 93ddb6abbf6f982833c07b4d4b8742ffe27667bb (patch) | |
tree | afd95e64d1e1a46752229fa82cb9cfd78dffe105 /src | |
parent | ab1eac0c4761085b0ec9fe7629dc4a34e0019179 (diff) | |
download | openbsd-93ddb6abbf6f982833c07b4d4b8742ffe27667bb.tar.gz openbsd-93ddb6abbf6f982833c07b4d4b8742ffe27667bb.tar.bz2 openbsd-93ddb6abbf6f982833c07b4d4b8742ffe27667bb.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); |