gimp r26866 - in trunk: . app/base



Author: tml
Date: Thu Sep  4 17:54:06 2008
New Revision: 26866
URL: http://svn.gnome.org/viewvc/gimp?rev=26866&view=rev

Log:
2008-09-04  Tor Lillqvist  <tml novell com>

	* app/base/base-utils.h
	* app/base/base-utils.c: The return type of get_pid() should be
	gint, not GPid. This matches also the C library on Windows, in
	which the return type of getpid() is int, not a pointer or
	intptr_t. The use for GPid in the GLib API is as a "handle" to a
	descendant processes, returned by the g_spawn_*() functions, and
	passed to the g_child_watch_*() functions, not as a "process
	identifier".



Modified:
   trunk/ChangeLog
   trunk/app/base/base-utils.c
   trunk/app/base/base-utils.h

Modified: trunk/app/base/base-utils.c
==============================================================================
--- trunk/app/base/base-utils.c	(original)
+++ trunk/app/base/base-utils.c	Thu Sep  4 17:54:06 2008
@@ -38,10 +38,10 @@
 
 /*  public functions  */
 
-GPid
+gint
 get_pid (void)
 {
-  return getpid ();
+  return (gint) getpid ();
 }
 
 gint

Modified: trunk/app/base/base-utils.h
==============================================================================
--- trunk/app/base/base-utils.h	(original)
+++ trunk/app/base/base-utils.h	Thu Sep  4 17:54:06 2008
@@ -20,7 +20,7 @@
 #define __BASE_H__
 
 
-GPid     get_pid                  (void);
+gint     get_pid                  (void);
 gint     get_number_of_processors (void);
 guint64  get_physical_memory_size (void);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]