Remove rpmSetMachine() from API
authorPanu Matilainen <pmatilai@redhat.com>
Thu, 8 Nov 2007 10:22:14 +0000 (12:22 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Thu, 8 Nov 2007 10:22:14 +0000 (12:22 +0200)
lib/rpmlib.h
lib/rpmrc.c

index 2dba825..c40f0f4 100644 (file)
@@ -579,18 +579,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.
  * @todo Eliminate from API.
index 508de55..849d755 100644 (file)
@@ -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;