From de7a247133fd618aa9438b70646cc30d1577d0f1 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Thu, 8 Nov 2007 12:22:14 +0200 Subject: Remove rpmSetMachine() from API --- lib/rpmlib.h | 12 ------------ lib/rpmrc.c | 13 ++++++++++++- 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/lib/rpmlib.h b/lib/rpmlib.h index 2dba82503..c40f0f4f6 100644 --- a/lib/rpmlib.h +++ b/lib/rpmlib.h @@ -578,18 +578,6 @@ int rpmShowRC(FILE * fp); */ void rpmSetTables(int archTable, int osTable); -/** \ingroup rpmrc - * Set current arch/os names. - * NULL as argument is set to the default value (munged uname()) - * pushed through a translation table (if appropriate). - * @deprecated Use addMacro to set _target_* macros. - * @todo Eliminate from API. - * - * @param arch arch name (or NULL) - * @param os os name (or NULL) - */ -void rpmSetMachine(const char * arch, const char * os); - /** \ingroup rpmrc * Return current arch/os names. * @deprecated Use rpmExpand on _target_* macros. diff --git a/lib/rpmrc.c b/lib/rpmrc.c index 508de557d..849d755f8 100644 --- a/lib/rpmrc.c +++ b/lib/rpmrc.c @@ -1330,7 +1330,18 @@ void rpmGetMachine(const char ** arch, const char ** os) *os = current[OS]; } -void rpmSetMachine(const char * arch, const char * os) +/** \ingroup rpmrc + * Set current arch/os names. + * NULL as argument is set to the default value (munged uname()) + * pushed through a translation table (if appropriate). + * @deprecated Use addMacro to set _target_* macros. + * @todo Eliminate + * + * @param arch arch name (or NULL) + * @param os os name (or NULL) + * */ + +static void rpmSetMachine(const char * arch, const char * os) { const char * host_cpu, * host_os; -- cgit v1.2.3