From b390d44bf2573d7bc0b97f19db7969bb2a26aa55 Mon Sep 17 00:00:00 2001 From: Przemyslaw Pawelczyk Date: Fri, 5 Feb 2016 23:58:09 +0100 Subject: Use C99 predefined identifier __func__ instead of non-std __FUNCTION__. --- src/metastore.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/metastore.c') diff --git a/src/metastore.c b/src/metastore.c index 4ac2654..56fc655 100644 --- a/src/metastore.c +++ b/src/metastore.c @@ -91,7 +91,7 @@ static void compare_print(struct metaentry *real, struct metaentry *stored, int cmp) { if (!real && !stored) { - msg(MSG_ERROR, "%s called with incorrect arguments\n", __FUNCTION__); + msg(MSG_ERROR, "%s called with incorrect arguments\n", __func__); return; } @@ -136,8 +136,7 @@ compare_fix(struct metaentry *real, struct metaentry *stored, int cmp) unsigned i; if (!real && !stored) { - msg(MSG_ERROR, "%s called with incorrect arguments\n", - __FUNCTION__); + msg(MSG_ERROR, "%s called with incorrect arguments\n", __func__); return; } -- cgit v1.2.1