mu: don't use __FUNCTION__, use __func__
__FUNCTION__ is deprecated and gives compilation warnings. __func__ is standardized in c99.
This commit is contained in:
@ -55,12 +55,12 @@ do_wordexp (const char *path)
|
||||
char *dir;
|
||||
|
||||
if (!path) {
|
||||
/* g_debug ("%s: path is empty", __FUNCTION__); */
|
||||
/* g_debug ("%s: path is empty", __func__); */
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (wordexp (path, &wexp, 0) != 0) {
|
||||
/* g_debug ("%s: expansion failed for %s", __FUNCTION__, path); */
|
||||
/* g_debug ("%s: expansion failed for %s", __func__, path); */
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@ -108,7 +108,7 @@ mu_util_dir_expand (const char *path)
|
||||
/* now resolve any symlinks, .. etc. */
|
||||
if (realpath (dir, resolved) == NULL) {
|
||||
/* g_debug ("%s: could not get realpath for '%s': %s", */
|
||||
/* __FUNCTION__, dir, strerror(errno)); */
|
||||
/* __func__, dir, strerror(errno)); */
|
||||
g_free (dir);
|
||||
return NULL;
|
||||
} else
|
||||
|
||||
Reference in New Issue
Block a user