shithub: choc

Download patch

ref: 893f94d018845b2a22139acb017618af5594f34b
parent: 8f7d6aa165650a2893bcdcfa50b099faf4538a82
author: Turo Lamminen <[email protected]>
date: Tue Dec 11 14:26:53 EST 2018

net: Make formatted_printf 's' parameter const

--- a/src/net_query.c
+++ b/src/net_query.c
@@ -642,8 +642,8 @@
 
 // -----------------------------------------------------------------------
 
-static void formatted_printf(int wide, char *s, ...) PRINTF_ATTR(2, 3);
-static void formatted_printf(int wide, char *s, ...)
+static void formatted_printf(int wide, const char *s, ...) PRINTF_ATTR(2, 3);
+static void formatted_printf(int wide, const char *s, ...)
 {
     va_list args;
     int i;