Mercurial > geeqie
diff src/remote.c @ 1000:4fe8f9656107
For the sake of consistency, use glib basic types everywhere.
author | zas_ |
---|---|
date | Tue, 26 Aug 2008 22:22:51 +0000 |
parents | 6ca2c5fd7b13 |
children | 9962b24b6b43 |
line wrap: on
line diff
--- a/src/remote.c Tue Aug 26 21:19:33 2008 +0000 +++ b/src/remote.c Tue Aug 26 22:22:51 2008 +0000 @@ -123,7 +123,7 @@ return TRUE; } -static void remote_server_client_add(RemoteConnection *rc, int fd) +static void remote_server_client_add(RemoteConnection *rc, gint fd) { RemoteClient *client; GIOChannel *channel; @@ -165,8 +165,8 @@ static gboolean remote_server_read_cb(GIOChannel *source, GIOCondition condition, gpointer data) { RemoteConnection *rc = data; - int fd; - unsigned int alen; + gint fd; + guint alen; fd = accept(rc->fd, NULL, &alen); if (fd == -1) @@ -200,7 +200,7 @@ RemoteConnection *rc; struct sockaddr_un addr; gint sun_path_len; - int fd; + gint fd; GIOChannel *channel; if (remote_server_exists(path)) @@ -256,7 +256,7 @@ struct stat st; struct sockaddr_un addr; gint sun_path_len; - int fd; + gint fd; if (stat(path, &st) != 0 || !S_ISSOCK(st.st_mode)) return NULL; @@ -286,7 +286,7 @@ static sig_atomic_t sigpipe_occured = FALSE; -static void sighandler_sigpipe(int sig) +static void sighandler_sigpipe(gint sig) { sigpipe_occured = TRUE; } @@ -669,7 +669,7 @@ } } -GList *remote_build_list(GList *list, int argc, char *argv[], GList **errors) +GList *remote_build_list(GList *list, gint argc, gchar *argv[], GList **errors) { gint i;