summaryrefslogtreecommitdiff
path: root/capplets/display/mate-display-properties-install-systemwide.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-03-04 14:11:24 +0100
committerraveit65 <[email protected]>2021-03-29 07:56:29 +0200
commit491939a5b29cd8b3d243de0524d0e1116a1ee540 (patch)
tree73d39d62d25e5ea0ac235944f4c58f5166067310 /capplets/display/mate-display-properties-install-systemwide.c
parent4ab076eeb591f4bd9385181e91c77f49f1bd36ed (diff)
downloadmate-control-center-491939a5b29cd8b3d243de0524d0e1116a1ee540.tar.bz2
mate-control-center-491939a5b29cd8b3d243de0524d0e1116a1ee540.tar.xz
display: remove conversion warnings
Diffstat (limited to 'capplets/display/mate-display-properties-install-systemwide.c')
-rw-r--r--capplets/display/mate-display-properties-install-systemwide.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/capplets/display/mate-display-properties-install-systemwide.c b/capplets/display/mate-display-properties-install-systemwide.c
index 993791c1..ece7016f 100644
--- a/capplets/display/mate-display-properties-install-systemwide.c
+++ b/capplets/display/mate-display-properties-install-systemwide.c
@@ -75,8 +75,8 @@ static gboolean
copy_file (int source_fd, int dest_fd)
{
char buf[1024];
- int num_read;
- int num_written;
+ ssize_t num_read;
+ ssize_t num_written;
while (TRUE) {
char *p;
@@ -94,7 +94,7 @@ copy_file (int source_fd, int dest_fd)
p = buf;
while (num_read > 0) {
- num_written = write (dest_fd, p, num_read);
+ num_written = write (dest_fd, p, (size_t) num_read);
if (num_written == -1) {
if (errno == EINTR)
continue;
@@ -133,7 +133,7 @@ main (int argc, char **argv)
const char *source_filename;
const char *dest_name;
const char *pkexec_uid_str;
- int pkexec_uid;
+ unsigned int pkexec_uid;
struct stat statbuf;
int err;
int source_fd;