Skip to content

Commit 9943799

Browse files
committed
Fix losing const warning
1 parent ba47ba4 commit 9943799

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

audisp/plugins/af_unix/queue.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ void q_close(struct queue *q)
8585

8686
/* Add DATA of LEN bytes to tail of Q. Return 0 on success, -1 on error and set
8787
* errno. */
88-
int q_append(struct queue *q, const void *data, size_t len, bool take_memory)
88+
int q_append(struct queue *q, void *data, size_t len, bool take_memory)
8989
{
9090
struct queue_node *e;
9191
unsigned char *copy;

audisp/plugins/af_unix/queue.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ struct queue *q_open(size_t num_entries, size_t entry_size)
4040

4141
/* Add DATA of LEN bytes to tail of Q. Return 0 on success, -1 on error and set
4242
* errno. */
43-
int q_append(struct queue *q, const void *data, size_t len, bool take_memory)
43+
int q_append(struct queue *q, void *data, size_t len, bool take_memory)
4444
__attr_access ((__read_only__, 2, 3));
4545

4646
/* Peek at head of Q, returning a pointer to DATA with LEN bytes. Return 1 if

0 commit comments

Comments
 (0)