Skip to content

Commit

Permalink
httpd: Fix const pointer conversion warnings (CentOS 7)
Browse files Browse the repository at this point in the history
httpd.c:136:5: warning: assignment discards ‘const’ qualifier from
    pointer target type [enabled by default]
  vi = ver;
     ^
httpd.c:137:7: warning: assignment discards ‘const’ qualifier from
    pointer target type [enabled by default]
  rend = ver + strlen(ver);
       ^

(cherry picked from commit 4304610)
  • Loading branch information
liviuchircu committed Nov 23, 2021
1 parent 79eb24e commit 6059c42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/httpd/httpd.c
Expand Up @@ -128,8 +128,8 @@ struct module_exports exports = {
#if defined MHD_VERSION && MHD_VERSION < 0x00093500
static long httpd_get_runtime_version(void)
{
char *end, *rend, *vi;
const char *ver = MHD_get_version();
char *end;
const char *ver = MHD_get_version(), *rend, *vi;
unsigned long tmp, version = 0;
int i;

Expand Down

0 comments on commit 6059c42

Please sign in to comment.