aboutsummaryrefslogtreecommitdiffstats
path: root/src/gamma-x-vidmode.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-05-25 05:47:19 +0200
committerMattias Andrée <maandree@operamail.com>2014-05-25 05:47:19 +0200
commit735b97fa6e91dea08f4ea9a0cab92ebf4cfda033 (patch)
tree880053440df77577db5d44fb47ae9269348c2c86 /src/gamma-x-vidmode.c
parentm + gamma-x-randr: get output and output info (diff)
downloadlibgamma-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/gamma-x-vidmode.c')
-rw-r--r--src/gamma-x-vidmode.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gamma-x-vidmode.c b/src/gamma-x-vidmode.c
index 42bce6e..cbed77f 100644
--- a/src/gamma-x-vidmode.c
+++ b/src/gamma-x-vidmode.c
@@ -37,7 +37,7 @@
*/
void libgamma_x_vidmode_method_capabilities(libgamma_method_capabilities_t* restrict this)
{
- char* display = getenv("DISPLAY");
+ char* restrict display = getenv("DISPLAY");
this->crtc_information = CRTC_INFO_GAMMA_SIZE
| CRTC_INFO_GAMMA_DEPTH;
this->default_site_known = (display && *display);
@@ -72,7 +72,7 @@ void libgamma_x_vidmode_method_capabilities(libgamma_method_capabilities_t* rest
int libgamma_x_vidmode_site_initialise(libgamma_site_state_t* restrict this,
char* restrict site)
{
- Display* connection = XOpenDisplay(site);
+ Display* restrict connection = XOpenDisplay(site);
int _major, _minor, screens;
if ((this->data = connection) == NULL)
return LIBGAMMA_OPEN_SITE_FAILED;
@@ -221,7 +221,7 @@ int libgamma_x_vidmode_get_crtc_information(libgamma_crtc_information_t* restric
this->gamma_size_error = 0;
if ((fields & CRTC_INFO_GAMMA_SUPPORT))
{
- Display* connection = crtc->partition->site->data;
+ Display* restrict connection = crtc->partition->site->data;
int stops;
if (!XF86VidModeGetGammaRampSize(connection, (int)(crtc->partition->partition), &stops))
this->gamma_size_error = LIBGAMMA_GAMMA_RAMPS_SIZE_QUERY_FAILED;