mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-12-11 02:53:40 +01:00
glib/giowin32.c glib/gmain.c glib/gspawn-win32.c Change gssize casts
2008-08-04 Tor Lillqvist <tml@novell.com> * glib/giowin32.c * glib/gmain.c * glib/gspawn-win32.c * glib/gspawn-win32-helper.c: Change gssize casts introduced on 2008-07-28 to gintptr casts now that we have that. gssize is as such the same as gintptr on both 32- and 64-bit Windows, but the gintptr name indicates that it is used to hold pointers, i.e. also HANDLEs. svn path=/trunk/; revision=7306
This commit is contained in:
committed by
Tor Lillqvist
parent
722379caa9
commit
0e2384faa8
@@ -30,13 +30,13 @@
|
||||
|
||||
|
||||
static void
|
||||
write_err_and_exit (gint fd,
|
||||
gssize msg)
|
||||
write_err_and_exit (gint fd,
|
||||
gintptr msg)
|
||||
{
|
||||
gssize en = errno;
|
||||
gintptr en = errno;
|
||||
|
||||
write (fd, &msg, sizeof(gssize));
|
||||
write (fd, &en, sizeof(gssize));
|
||||
write (fd, &msg, sizeof(gintptr));
|
||||
write (fd, &en, sizeof(gintptr));
|
||||
|
||||
_exit (1);
|
||||
}
|
||||
@@ -163,9 +163,9 @@ main (int ignored_argc, char **ignored_argv)
|
||||
int i;
|
||||
int fd;
|
||||
int mode;
|
||||
gssize handle;
|
||||
gintptr handle;
|
||||
int saved_errno;
|
||||
gssize no_error = CHILD_NO_ERROR;
|
||||
gintptr no_error = CHILD_NO_ERROR;
|
||||
gint argv_zero_offset = ARG_PROGRAM;
|
||||
wchar_t **new_wargv;
|
||||
int argc;
|
||||
|
||||
Reference in New Issue
Block a user