Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

external-efivar: Commit

external/efivar


Commit MetaInfo

Revisiónfdb803402fb32fa6d020bac57a40c7efe4aabb7d (tree)
Tiempo2019-03-06 03:14:47
AutorJavier Martinez Canillas <javierm@redh...>
CommiterPeter Jones

Log Message

ucs2.h: remove unused variable

The const uint16_t pointer is not used since now the two bytes of the
UCS-2 chars are checked to know if is the termination of the string.

Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>

Cambiar Resumen

Diferencia

--- a/src/ucs2.h
+++ b/src/ucs2.h
@@ -26,12 +26,11 @@ static inline size_t UNUSED
2626 ucs2len(const void *vs, ssize_t limit)
2727 {
2828 ssize_t i;
29- const uint16_t *s = vs;
3029 const uint8_t *s8 = vs;
3130
3231 for (i = 0;
3332 i < (limit >= 0 ? limit : i+1) && s8[0] != 0 && s8[1] != 0;
34- i++, s8 += 2, s++)
33+ i++, s8 += 2)
3534 ;
3635 return i;
3736 }
Show on old repository browser