summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2012-08-20 09:51:06 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2012-08-20 09:51:06 +0000
commite7462914be85a35ca1de99177d79e67973dd956c (patch)
treebef5e0ed0d744d59ff03fb8441054473a99a408c /usr.bin
parent786f06e3b17a929477fa3a773dd095a980825eca (diff)
make use of __only_inline to ask for gnu inline semantics
ok espie@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/make/targ.c8
-rw-r--r--usr.bin/make/targ.h6
2 files changed, 3 insertions, 11 deletions
diff --git a/usr.bin/make/targ.c b/usr.bin/make/targ.c
index b69a7baa112..e9220a781b0 100644
--- a/usr.bin/make/targ.c
+++ b/usr.bin/make/targ.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: targ.c,v 1.63 2012/03/22 13:47:12 espie Exp $ */
+/* $OpenBSD: targ.c,v 1.64 2012/08/20 09:51:05 jsg Exp $ */
/* $NetBSD: targ.c,v 1.11 1997/02/20 16:51:50 christos Exp $ */
/*
@@ -461,9 +461,3 @@ targets_hash()
{
return &targets;
}
-
-GNode *
-Targ_FindNodeh(const char *name, size_t n, uint32_t hv, int flags)
-{
- return Targ_FindNodeih(name, name + n - 1, hv, flags);
-}
diff --git a/usr.bin/make/targ.h b/usr.bin/make/targ.h
index 790e6768fbf..decbd879939 100644
--- a/usr.bin/make/targ.h
+++ b/usr.bin/make/targ.h
@@ -1,6 +1,6 @@
#ifndef TARG_H
#define TARG_H
-/* $OpenBSD: targ.h,v 1.9 2010/07/19 19:46:44 espie Exp $ */
+/* $OpenBSD: targ.h,v 1.10 2012/08/20 09:51:05 jsg Exp $ */
/*
* Copyright (c) 2001 Marc Espie.
@@ -56,9 +56,7 @@ extern GNode *Targ_FindNodei(const char *, const char *, int);
/* set of helpers for constant nodes */
extern GNode *Targ_FindNodeih(const char *, const char *, uint32_t, int);
-extern inline GNode *
-Targ_FindNodeh(const char *, size_t, uint32_t, int);
-extern inline GNode *
+__only_inline GNode *
Targ_FindNodeh(const char *name, size_t n, uint32_t hv, int flags)
{
return Targ_FindNodeih(name, name + n - 1, hv, flags);