diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-05-25 05:47:19 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-05-25 05:47:19 +0200 |
commit | 735b97fa6e91dea08f4ea9a0cab92ebf4cfda033 (patch) | |
tree | 880053440df77577db5d44fb47ae9269348c2c86 /src/libgamma-facade.c | |
parent | m + gamma-x-randr: get output and output info (diff) | |
download | libgamma-735b97fa6e91dea08f4ea9a0cab92ebf4cfda033.tar.gz libgamma-735b97fa6e91dea08f4ea9a0cab92ebf4cfda033.tar.bz2 libgamma-735b97fa6e91dea08f4ea9a0cab92ebf4cfda033.tar.xz |
more restrict
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/libgamma-facade.c')
-rw-r--r-- | src/libgamma-facade.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libgamma-facade.c b/src/libgamma-facade.c index 9f95c50..25a7ba8 100644 --- a/src/libgamma-facade.c +++ b/src/libgamma-facade.c @@ -168,7 +168,7 @@ static int libgamma_list_method_test(int method, int operation) * Other values invoke undefined behaviour. * @return The number of element that have been stored in `methods` */ -size_t libgamma_list_methods(int* methods, int operation) +size_t libgamma_list_methods(int* restrict methods, int operation) { #ifdef HAVE_NO_GAMMA_METHODS (void) methods; @@ -268,8 +268,8 @@ void libgamma_method_capabilities(libgamma_method_capabilities_t* restrict this, */ char* libgamma_method_default_site(int method) { - const char* var = libgamma_method_default_site_variable(method); - char* env; + const char* restrict var = libgamma_method_default_site_variable(method); + char* restrict env; if (var == NULL) return NULL; @@ -860,7 +860,7 @@ void libgamma_crtc_information_free(libgamma_crtc_information_t* restrict this) */ char* libgamma_behex_edid_lowercase(const unsigned char* restrict edid, size_t length) { - char* out = malloc((length * 2 + 1) * sizeof(char)); + char* restrict out = malloc((length * 2 + 1) * sizeof(char)); size_t i; if (out == NULL) @@ -887,7 +887,7 @@ char* libgamma_behex_edid_lowercase(const unsigned char* restrict edid, size_t l */ char* libgamma_behex_edid_uppercase(const unsigned char* restrict edid, size_t length) { - char* out = malloc((length * 2 + 1) * sizeof(char)); + char* restrict out = malloc((length * 2 + 1) * sizeof(char)); size_t i; if (out == NULL) @@ -917,7 +917,7 @@ unsigned char* libgamma_unhex_edid(const char* restrict edid) #define not_range(lower, V, upper) ((V < lower) || (upper < V)) #define is_not_hex(V) (not_range('0', V, '9') && not_range('a', V, 'f') && not_range('A', V, 'F')) - unsigned char* out = NULL; + unsigned char* restrict out = NULL; size_t n = strlen(edid); size_t i; |