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:
Tor Lillqvist
2008-08-04 18:46:59 +00:00
committed by Tor Lillqvist
parent 722379caa9
commit 0e2384faa8
5 changed files with 37 additions and 28 deletions

View File

@@ -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;