File efivar-0.21-gcc6.diff of Package efivar

--- src/util.h.orig	2016-02-10 15:29:15.245050330 +0000
+++ src/util.h	2016-02-10 15:29:18.957092775 +0000
@@ -175,14 +175,14 @@
 			}						\
 		}							\
 		if (_rc >= 0) {						\
-			uint8_t *_buf2 = alloca(_bufsize);		\
+			void *_buf2 = alloca(_bufsize);		\
 			_saved_errno = errno;				\
 			if (_buf2) {					\
 				memcpy(_buf2, _buf, _bufsize);		\
 				_rc = _bufsize;				\
 			}						\
 			free(_buf);					\
-			*((uint8_t **)buf) = _buf2;			\
+			*((void **)buf) = _buf2;			\
 			errno = _saved_errno;				\
 		}							\
 		_rc;							\
openSUSE Build Service is sponsored by