After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 417811 - argv should be const in g_spawn declaration
argv should be const in g_spawn declaration
Status: RESOLVED WONTFIX
Product: glib
Classification: Platform
Component: general
unspecified
Other Linux
: Normal minor
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2007-03-13 10:30 UTC by Loïc Minier
Modified: 2007-05-10 11:59 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Loïc Minier 2007-03-13 10:30:51 UTC
Hi,

Jasen Betts reported in Debian bug http://bugs.debian.org/414655:
"""
the declarations of g_spawn_asnyc (etc)
(http://developer.gnome.org/doc/API/2.0/glib/glib-Spawning-Processes.html#g-spaw
n-sync)
shold probably have argv and envp declared as

 const gchar ** argv

or even

 const gchar * const * argv

Unless they modify those arrays. (in which case the modifications should be
documented)
"""

Bye,
Comment 1 Havoc Pennington 2007-03-13 15:17:44 UTC
One of many places const doesn't work in C, there will be a warning if someone passes in "char**" without const if you try to do this. There's a bunch of discussion in gtk-devel-list archives and a standing library policy on this, feel free to go read it all...
Comment 2 Loïc Minier 2007-05-10 11:59:18 UTC
So, WONTFIXing.