From: Klas Lindfors Date: Tue, 18 Sep 2012 06:53:45 +0000 (+0200) Subject: make buf const as we assign static strings X-Git-Tag: v1.8.0~55 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bec1e20da0b987b76d41f23a6e5bc30af739cc79;p=yubikey-personalization make buf const as we assign static strings --- diff --git a/ykcore/ykcore_libusb-1.0.c b/ykcore/ykcore_libusb-1.0.c index 9e31eff..d7115fa 100644 --- a/ykcore/ykcore_libusb-1.0.c +++ b/ykcore/ykcore_libusb-1.0.c @@ -200,7 +200,7 @@ int _ykusb_close_device(void *yk) const char *_ykusb_strerror() { - static char *buf; + static const char *buf; switch (ykl_errno) { case LIBUSB_SUCCESS: buf = "Success (no error)";