aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-06-13 18:43:57 +0000
committerThierry Vignaud <tv@mageia.org>2012-06-13 18:43:57 +0000
commitdcffda935b374e3bcc80d610409569a8450f2891 (patch)
tree6c2dabea01f114f7a74bc1edf5ffb6d85b771525
parent3f99bad420363ce7a036c79698f643096b686a1a (diff)
downloadperl-URPM-dcffda935b374e3bcc80d610409569a8450f2891.tar
perl-URPM-dcffda935b374e3bcc80d610409569a8450f2891.tar.gz
perl-URPM-dcffda935b374e3bcc80d610409569a8450f2891.tar.bz2
perl-URPM-dcffda935b374e3bcc80d610409569a8450f2891.tar.xz
perl-URPM-dcffda935b374e3bcc80d610409569a8450f2891.zip
tag some internal functions as static (saves another 1% of code)
-rw-r--r--URPM.xs16
1 files changed, 8 insertions, 8 deletions
diff --git a/URPM.xs b/URPM.xs
index c3dd178..2e524bf 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -108,7 +108,7 @@ static const void* unused_variable(const void *p) {
static int rpmError_callback_data;
-int rpmError_callback() {
+static int rpmError_callback() {
write_nocheck(rpmError_callback_data, rpmlogMessage(), strlen(rpmlogMessage()));
return RPMLOG_DEFAULT;
}
@@ -463,7 +463,7 @@ xpush_simple_list_str(Header header, rpmTag tag_name) {
} else return 0;
}
-void
+static void
return_list_uint32_t(Header header, rpmTag tag_name) {
dSP;
if (header) {
@@ -479,7 +479,7 @@ return_list_uint32_t(Header header, rpmTag tag_name) {
PUTBACK;
}
-void
+static void
return_list_uint_16(Header header, rpmTag tag_name) {
dSP;
if (header) {
@@ -497,7 +497,7 @@ return_list_uint_16(Header header, rpmTag tag_name) {
PUTBACK;
}
-void
+static void
return_list_tag_modifier(Header header, rpmTag tag_name) {
dSP;
int i;
@@ -533,7 +533,7 @@ return_list_tag_modifier(Header header, rpmTag tag_name) {
PUTBACK;
}
-void
+static void
return_list_tag(URPM__Package pkg, rpmTag tag_name) {
dSP;
if (pkg->h != NULL) {
@@ -628,7 +628,7 @@ return_list_tag(URPM__Package pkg, rpmTag tag_name) {
}
-void
+static void
return_files(Header header, int filter_mode) {
dSP;
if (header) {
@@ -689,7 +689,7 @@ return_files(Header header, int filter_mode) {
PUTBACK;
}
-void
+static void
return_problems(rpmps ps, int translate_message, int raw_message) {
dSP;
if (ps && rpmpsNumProblems(ps) > 0) {
@@ -996,7 +996,7 @@ update_provides_files(URPM__Package pkg, HV *provides) {
}
}
-FD_t
+static FD_t
open_archive(char *filename, int *empty_archive) {
int fd;
FD_t rfd = NULL;