aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Woodward2005-01-16 03:42:19 +0000
committerJason Woodward2005-01-16 03:42:19 +0000
commite83bc3cb9bb3e0b07f98b2b08fb3ee0ba3b980bd (patch)
treee89a906669359186a95b32adf3d8ddafc6f6d065 /src
parentf2a89c6b447917fe0d9018e5c20cf8822afebbdd (diff)
downloadslapt-get-e83bc3cb9bb3e0b07f98b2b08fb3ee0ba3b980bd.tar.gz
inlined init_pkg()
Diffstat (limited to 'src')
-rw-r--r--src/package.c2
-rw-r--r--src/package.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/package.c b/src/package.c
index 7d9042e..a7e585c 100644
--- a/src/package.c
+++ b/src/package.c
@@ -1803,7 +1803,7 @@ void add_pkg_to_pkg_list(struct pkg_list *list,pkg_info_t *pkg){
}
-pkg_info_t *init_pkg(void){
+__inline pkg_info_t *init_pkg(void){
pkg_info_t *pkg;
pkg = slapt_malloc( sizeof *pkg );
diff --git a/src/package.h b/src/package.h
index 439a03f..999398b 100644
--- a/src/package.h
+++ b/src/package.h
@@ -88,7 +88,7 @@ struct pkg_version_parts {
-pkg_info_t *init_pkg(void);
+__inline pkg_info_t *init_pkg(void);
struct pkg_list *init_pkg_list(void);
void add_pkg_to_pkg_list(struct pkg_list *list,pkg_info_t *pkg);
/* free memory allocated for pkg_list struct */