--- ganglia-3.7.2/gmond/gmond.c~	2015-07-01 21:49:35.000000000 +0200
+++ ganglia-3.7.2/gmond/gmond.c	2024-02-05 19:54:03.584404224 +0100
@@ -2060,7 +2060,7 @@
 	  debug_msg("failed to allocate gzip stream");
 	  goto close_accept_socket;
 	}
-      apr_status_t r = apr_socket_data_set(client, strm, GZIP_KEY, &zstream_destroy);
+      apr_status_t r = apr_socket_data_set(client, strm, GZIP_KEY, (int (*)(void *))&zstream_destroy);
       if (r != APR_SUCCESS)
 	{
 	  debug_msg("failed to set socket user data");
diff --git a/gmetad/rrd_helpers.c b/gmetad/rrd_helpers.c
index 740799a..3f39071 100644
--- a/gmetad/rrd_helpers.c
+++ b/gmetad/rrd_helpers.c
@@ -199,7 +199,7 @@ reconnect:
 static int
 RRD_update( char *rrd, const char *sum, const char *num, unsigned int process_time )
 {
-   char *argv[3];
+   const char *argv[3];
    int   argc = 3;
    char val[128];
 
@@ -235,7 +235,7 @@ RRD_create( char *rrd, int summary, unsigned int step,
             unsigned int process_time, ganglia_slope_t slope)
 {
    const char *data_source_type = "GAUGE";
-   char *argv[128];
+   const char *argv[128];
    int  argc=0;
    int heartbeat;
    char s[16], start[64];
