summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install/lib/match.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/pkg_install/lib/match.c')
-rw-r--r--usr.sbin/pkg_install/lib/match.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/pkg_install/lib/match.c b/usr.sbin/pkg_install/lib/match.c
index 90b6979..5671406 100644
--- a/usr.sbin/pkg_install/lib/match.c
+++ b/usr.sbin/pkg_install/lib/match.c
@@ -66,7 +66,7 @@ matchinstalled(match_t MatchType, char **patterns, int *retval)
if (store == NULL) {
store = malloc(sizeof *store);
if (store == NULL) {
- warnx("%s(): malloc() failed", __FUNCTION__);
+ warnx("%s(): malloc() failed", __func__);
if (retval != NULL)
*retval = 1;
return NULL;
@@ -95,7 +95,7 @@ matchinstalled(match_t MatchType, char **patterns, int *retval)
for (len = 0; patterns[len]; len++) {}
lmatched = alloca(sizeof(*lmatched) * len);
if (lmatched == NULL) {
- warnx("%s(): alloca() failed", __FUNCTION__);
+ warnx("%s(): alloca() failed", __func__);
if (retval != NULL)
*retval = 1;
return NULL;
@@ -203,14 +203,14 @@ storeappend(struct store *store, const char *item)
store->currlen * sizeof(*(store->store)));
if (store->store == NULL) {
store->currlen = 0;
- warnx("%s(): reallocf() failed", __FUNCTION__);
+ warnx("%s(): reallocf() failed", __func__);
return 1;
}
}
asprintf(&(store->store[store->used]), "%s", item);
if (store->store[store->used] == NULL) {
- warnx("%s(): malloc() failed", __FUNCTION__);
+ warnx("%s(): malloc() failed", __func__);
return 1;
}
store->used++;
OpenPOWER on IntegriCloud