summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorjbj <devnull@localhost>1999-07-13 23:19:08 +0000
committerjbj <devnull@localhost>1999-07-13 23:19:08 +0000
commitfca8845a9a45f9d2d8940f145b311ef79d51c1ee (patch)
tree551531078e37c94cfdabbb7938fe4e58dad7bb32 /lib
parent348fcc286d45687fc7d00312a13c1f9f20bcd661 (diff)
downloadlibrpm-tizen-fca8845a9a45f9d2d8940f145b311ef79d51c1ee.tar.gz
librpm-tizen-fca8845a9a45f9d2d8940f145b311ef79d51c1ee.tar.bz2
librpm-tizen-fca8845a9a45f9d2d8940f145b311ef79d51c1ee.zip
Eliminate static prototypes.
CVS patchset: 3151 CVS date: 1999/07/13 23:19:08
Diffstat (limited to 'lib')
-rw-r--r--lib/rpmdb.c32
1 files changed, 13 insertions, 19 deletions
diff --git a/lib/rpmdb.c b/lib/rpmdb.c
index 1556b4021..eb7620451 100644
--- a/lib/rpmdb.c
+++ b/lib/rpmdb.c
@@ -34,16 +34,21 @@ struct intMatch {
int fpNum;
};
-static void removeIndexEntry(dbiIndex * dbi, char * name, dbiIndexRecord rec,
- int tolerant, char * idxName);
-static int addIndexEntry(dbiIndex * idx, char * index, unsigned int offset,
- unsigned int fileNumber);
-static void blockSignals(void);
-static void unblockSignals(void);
-static int intMatchCmp(const void * one, const void * two);
-
static sigset_t signalMask;
+static void blockSignals(void)
+{
+ sigset_t newMask;
+
+ sigfillset(&newMask); /* block all signals */
+ sigprocmask(SIG_BLOCK, &newMask, &signalMask);
+}
+
+static void unblockSignals(void)
+{
+ sigprocmask(SIG_SETMASK, &signalMask, NULL);
+}
+
static int intMatchCmp(const void * one, const void * two) {
const struct intMatch * a = one;
const struct intMatch * b = two;
@@ -664,17 +669,6 @@ int rpmdbUpdateRecord(rpmdb db, int offset, Header newHeader) {
return 0;
}
-static void blockSignals(void) {
- sigset_t newMask;
-
- sigfillset(&newMask); /* block all signals */
- sigprocmask(SIG_BLOCK, &newMask, &signalMask);
-}
-
-static void unblockSignals(void) {
- sigprocmask(SIG_SETMASK, &signalMask, NULL);
-}
-
void rpmdbRemoveDatabase(const char * rootdir, const char * dbpath) {
int i;
char * filename;