Reduce warnings/errors in libpayload when using picky compiler options
[coreboot.git] / payloads / libpayload / libc / printf.c
index 389d2277eaf6d22faa34f57d7bb4a40d9bd4ebc0..e3cf8bbb24ca2224879ac96ff3da8add9f0a0548 100644 (file)
@@ -114,7 +114,7 @@ static int printf_putstr(const char *str, struct printf_spec *ps)
        size_t count;
 
        if (str == NULL) {
-               char *nullstr = "(NULL)";
+               const char *nullstr = "(NULL)";
                return printf_putnchars(nullstr, strlen(nullstr), ps);
        }