libuuid: improve "restrict" keyword use
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3 on travis-ci returns: libuuid/src/unparse.c:42:67: error: ‘restrict’ undeclared here (not in a function) libuuid/src/unparse.c: In function ‘uuid_fmt’: Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
798608c842
commit
33b09aebf5
|
@ -39,7 +39,7 @@
|
|||
static char const hexdigits_lower[16] = "0123456789abcdef";
|
||||
static char const hexdigits_upper[16] = "0123456789ABCDEF";
|
||||
|
||||
static void uuid_fmt(const uuid_t uuid, char *buf, char const fmt[restrict])
|
||||
static void uuid_fmt(const uuid_t uuid, char *buf, char const *restrict fmt)
|
||||
{
|
||||
char *p = buf;
|
||||
int i;
|
||||
|
|
Loading…
Reference in New Issue