Use restrict on pointers where it makes sense. (requires C99 support,
which we already assume)
This commit is contained in:
+1
-1
@@ -47,7 +47,7 @@ const char *uc_val_2_str_bs(unsigned int val,
|
||||
return found;
|
||||
}
|
||||
|
||||
const char *uc_str_2_str(const char *val, const struct UCStrStr *array)
|
||||
const char *uc_str_2_str(const char *restrict val, const struct UCStrStr *array)
|
||||
{
|
||||
const char *found = NULL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user