Skip to content

Commit

Permalink
Fix unused parameters compile warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jajik committed Sep 27, 2024
1 parent de3eecf commit 4c442d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions native/mod_manager/mod_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -742,6 +742,7 @@ static char **process_buff(request_rec *r, char *buff)

static apr_status_t insert_update_host_helper(server_rec *s, mem_t *mem, hostinfo_t *info, char *alias)
{
(void)s;
strncpy(info->host, alias, HOSTALIASZ);
info->host[HOSTALIASZ] = '\0';
return insert_update_host(mem, info);
Expand Down Expand Up @@ -797,6 +798,7 @@ static void read_remove_context(mem_t *mem, contextinfo_t *context)
static apr_status_t insert_update_context_helper(server_rec *s, mem_t *mem, contextinfo_t *info, char *context,
int status)
{
(void)s;
info->id = 0;
strncpy(info->context, context, CONTEXTSZ);
info->context[CONTEXTSZ] = '\0';
Expand Down

0 comments on commit 4c442d1

Please sign in to comment.