summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2010-09-29 16:15:04 +0300
committerPanu Matilainen <pmatilai@redhat.com>2010-09-29 16:15:04 +0300
commit7d290779219f34dd53e11a2f2fa3b31b905c040c (patch)
tree6cdff9d3d37fe104ebb36ae1d3f91becd3c5f9af /lib
parenta6899e30d992ee8fbdf13bdd93688d95db210320 (diff)
downloadlibrpm-tizen-7d290779219f34dd53e11a2f2fa3b31b905c040c.tar.gz
librpm-tizen-7d290779219f34dd53e11a2f2fa3b31b905c040c.tar.bz2
librpm-tizen-7d290779219f34dd53e11a2f2fa3b31b905c040c.zip
And now sighdrPut() can be buried back into signature.c
Diffstat (limited to 'lib')
-rw-r--r--lib/signature.c13
-rw-r--r--lib/signature.h13
2 files changed, 13 insertions, 13 deletions
diff --git a/lib/signature.c b/lib/signature.c
index 10dc87f3f..fe8ad52f1 100644
--- a/lib/signature.c
+++ b/lib/signature.c
@@ -19,6 +19,19 @@
#include "debug.h"
+/* Dumb wrapper around headerPut() for signature header */
+static int sighdrPut(Header h, rpmSigTag tag, rpmTagType type,
+ rpm_data_t p, rpm_count_t c)
+{
+ struct rpmtd_s sigtd;
+ rpmtdReset(&sigtd);
+ sigtd.tag = tag;
+ sigtd.type = type;
+ sigtd.data = p;
+ sigtd.count = c;
+ return headerPut(h, &sigtd, HEADERPUT_DEFAULT);
+}
+
/**
* Print package size.
* @todo rpmio: use fdSize rather than fstat(2) to get file size.
diff --git a/lib/signature.h b/lib/signature.h
index 4265fc024..3f11e82ea 100644
--- a/lib/signature.h
+++ b/lib/signature.h
@@ -19,19 +19,6 @@ typedef enum sigType_e {
extern "C" {
#endif
-/* Dumb wrapper around headerPut() for signature header */
-static inline int sighdrPut(Header h, rpmSigTag tag, rpmTagType type,
- rpm_data_t p, rpm_count_t c)
-{
- struct rpmtd_s sigtd;
- rpmtdReset(&sigtd);
- sigtd.tag = tag;
- sigtd.type = type;
- sigtd.data = p;
- sigtd.count = c;
- return headerPut(h, &sigtd, HEADERPUT_DEFAULT);
-}
-
/** \ingroup signature
* Return new, empty (signature) header instance.
* @return signature header