s/__FUNCTION__/G_GNUC_FUNCTION/ ditto ditto ditto change "test $x == y" to

2002-01-28  Laszlo Peter  <laca@ireland.sun.com>

	* archiver/location.c: s/__FUNCTION__/G_GNUC_FUNCTION/
	* capplets/common/capplet-util.c: ditto
	* capplets/common/capplet-util.h: ditto
	* libbackground/preferences.c: ditto
	* applets/common/wrapper-script.in: change "test $x == y" to
	  "test $x = y" for portability
This commit is contained in:
Laszlo Peter 2002-01-28 19:55:29 +00:00 committed by László PÉTER
parent 66fa37fc6e
commit a02d04c48b
6 changed files with 17 additions and 8 deletions

View file

@ -1,3 +1,12 @@
2002-01-28 Laszlo Peter <laca@ireland.sun.com>
* archiver/location.c: s/__FUNCTION__/G_GNUC_FUNCTION/
* capplets/common/capplet-util.c: ditto
* capplets/common/capplet-util.h: ditto
* libbackground/preferences.c: ditto
* applets/common/wrapper-script.in: change "test $x == y" to
"test $x = y" for portability
2002-01-27 Richard Hestilow <hestilow@ximian.com>
* Makefile.am (CLEANFILES): Rename as MAINTAINERCLEANFILES.

View file

@ -679,11 +679,11 @@ location_do_rollback (Location *location, gchar *backend_id, xmlDocPtr doc)
if (fflush (output) == EOF)
g_critical ("%s: Could not dump buffer: %s",
__FUNCTION__, g_strerror (errno));
G_GNUC_FUNCTION, g_strerror (errno));
if (fclose (output) == EOF) {
g_critical ("%s: Could not close output stream: %s",
__FUNCTION__, g_strerror (errno));
G_GNUC_FUNCTION, g_strerror (errno));
return FALSE;
}
@ -724,7 +724,7 @@ location_delete (Location *location)
if (rmdir (location->p->fullpath) == -1)
g_warning ("%s: Could not remove directory: %s\n",
__FUNCTION__, g_strerror (errno));
G_GNUC_FUNCTION, g_strerror (errno));
location->p->deleted = TRUE;
}

View file

@ -101,7 +101,7 @@ create_control_cb (BonoboGenericFactory *factory, const gchar *component_id)
static const gchar *prefix1 = "OAFIID:Bonobo_Control_Capplet_";
g_message ("%s: Enter", __FUNCTION__);
g_message ("%s: Enter", G_GNUC_FUNCTION);
if (!strncmp (component_id, prefix1, strlen (prefix1))) {
property_control = bonobo_property_control_new

View file

@ -32,9 +32,9 @@
/* Print a debugging message */
#define DEBUG_MSG(str, args...) \
#define DEBUG_MSG(str, ...) \
g_log (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "(%d:%s) " str, \
getpid (), __FUNCTION__ , ## args)
getpid (), G_GNUC_FUNCTION, __VA_ARGS__)
/* Retrieve a widget from the Glade object */

View file

@ -1,6 +1,6 @@
#!/bin/sh
if test "x$#" == "x0"
if test "x$#" = "x0"
then
@BINDIR@/gnomecc --run-capplet @CAPPLET_NAME@
else

View file

@ -250,7 +250,7 @@ bg_preferences_merge_entry (BGPreferences *prefs,
else if (!strcmp (entry->key, "/desktop/gnome/background/wallpaper-type")) {
prefs->wallpaper_type = gconf_value_get_int (value);
} else {
g_warning ("%s: Unknown property: %s", __FUNCTION__, entry->key);
g_warning ("%s: Unknown property: %s", G_GNUC_FUNCTION, entry->key);
}
}