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:
Karel Zak 2021-01-22 10:44:01 +01:00
parent 798608c842
commit 33b09aebf5
1 changed files with 1 additions and 1 deletions

View File

@ -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;