diff options
-rw-r--r-- | lib/signature.c | 13 | ||||
-rw-r--r-- | lib/signature.h | 13 |
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 |