From: Bill Stoddard Date: Fri, 20 Apr 2001 19:11:21 +0000 (+0000) Subject: struct_ptr is a void*. The Windows compiler doesn't like it when you try X-Git-Tag: 2.0.18~191 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eed63954f38915b707e8e35684a20c04073c6bcf;p=apache struct_ptr is a void*. The Windows compiler doesn't like it when you try to do pointer math on a void*. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88905 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/config.c b/server/config.c index 52fe13ede1..689b347777 100644 --- a/server/config.c +++ b/server/config.c @@ -1069,7 +1069,7 @@ AP_DECLARE_NONSTD(const char *) ap_set_int_slot(cmd_parms *cmd, char *error_str = NULL; int offset = (int) (long) cmd->info; - *(int *) (struct_ptr + offset) = strtol(arg, &endptr, 10); + *(int *) ((char*)struct_ptr + offset) = strtol(arg, &endptr, 10); if ((*arg == '\0') || (*endptr != '\0')) { error_str = apr_psprintf(cmd->pool,