summaryrefslogtreecommitdiffstats
path: root/src/blueshift_iccprofile.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-04-11 21:49:54 +0200
committerMattias Andrée <maandree@operamail.com>2014-04-11 21:49:54 +0200
commit80a321118cc46c357a317b8668998d13f8c8b062 (patch)
tree81f43a1eb00fb48d78568a3cc71ee77e955ba80b /src/blueshift_iccprofile.c
parenthotplugging does work, can operate on CRTC:s without any attached monitors (diff)
downloadblueshift-80a321118cc46c357a317b8668998d13f8c8b062.tar.gz
blueshift-80a321118cc46c357a317b8668998d13f8c8b062.tar.bz2
blueshift-80a321118cc46c357a317b8668998d13f8c8b062.tar.xz
add more warnings
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/blueshift_iccprofile.c')
-rw-r--r--src/blueshift_iccprofile.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/blueshift_iccprofile.c b/src/blueshift_iccprofile.c
index 689a2da..99d5c42 100644
--- a/src/blueshift_iccprofile.c
+++ b/src/blueshift_iccprofile.c
@@ -42,11 +42,11 @@ static xcb_generic_error_t* error;
* @param argv Command line arguments
* @return Zero on success
*/
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wstack-protector"
-int main(int argc, char** argv)
+ #pragma GCC diagnostic push
+ #pragma GCC diagnostic ignored "-Wstack-protector"
+int main(int argc, char **argv)
{
-#pragma GCC diagnostic pop
+ #pragma GCC diagnostic pop
char* display = NULL;
xcb_screen_iterator_t iter;
int screen_count;
@@ -128,7 +128,7 @@ int main(int argc, char** argv)
xcb_get_atom_name_reply_t* name_reply;
char* name;
char* name_;
- size_t len;
+ uint32_t len;
xcb_get_property_cookie_t prop_cookie;
xcb_get_property_reply_t* prop_reply;
int monitor;
@@ -154,7 +154,7 @@ int main(int argc, char** argv)
/* Extract the atom name from the data structure that holds it. */
name_ = xcb_get_atom_name_name(name_reply);
/* As well as the length of the name; it is not NUL-termianted.*/
- len = (size_t)xcb_get_atom_name_name_length(name_reply);
+ len = (uint32_t)xcb_get_atom_name_name_length(name_reply);
/* NUL-terminate the atom name, */
name = alloca((len + 1U) * sizeof(char));