]> err.no Git - yubikey-personalization/commitdiff
make buf const as we assign static strings
authorKlas Lindfors <klas@yubico.com>
Tue, 18 Sep 2012 06:53:45 +0000 (08:53 +0200)
committerKlas Lindfors <klas@yubico.com>
Tue, 18 Sep 2012 06:53:45 +0000 (08:53 +0200)
ykcore/ykcore_libusb-1.0.c

index 9e31eff8d96aac72b01ccde675a403a476eea47e..d7115faf9e5898ae9aec88d21ee5f5b375e288dc 100644 (file)
@@ -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)";