Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2005-11-07 12:57:33 +0000
committerAurelien Foret <aurelien@archlinux.org>2005-11-07 12:57:33 +0000
commitb2df466ffd87c46a823fc46c3ca0026f6c9a001e (patch)
tree4537a339d94fde1ac621decad1bf55bfaea8cee1 /lib
parent6a2230dce1544418112c85bf46f3669cc7fed7dc (diff)
fixed compilation warnings
Diffstat (limited to 'lib')
-rw-r--r--lib/libalpm/alpm.h8
-rw-r--r--lib/libalpm/group.h2
-rw-r--r--lib/libalpm/handle.h2
-rw-r--r--lib/libalpm/list.h2
-rw-r--r--lib/libalpm/package.h2
-rw-r--r--lib/libalpm/provide.c1
-rw-r--r--lib/libalpm/trans.h2
7 files changed, 10 insertions, 9 deletions
diff --git a/lib/libalpm/alpm.h b/lib/libalpm/alpm.h
index 5ba0e1d7..0e84d6e0 100644
--- a/lib/libalpm/alpm.h
+++ b/lib/libalpm/alpm.h
@@ -51,7 +51,7 @@ typedef struct __pmdepmissing_t PM_DEPMISS;
*/
int alpm_initialize(char *root);
-int alpm_release();
+int alpm_release(void);
/*
* Logging facilities
@@ -255,11 +255,11 @@ enum {
void *alpm_trans_getinfo(unsigned char parm);
int alpm_trans_init(unsigned char type, unsigned char flags, alpm_trans_cb_event cb_event, alpm_trans_cb_conv conv);
-int alpm_trans_sysupgrade();
+int alpm_trans_sysupgrade(void);
int alpm_trans_addtarget(char *target);
int alpm_trans_prepare(PM_LIST **data);
-int alpm_trans_commit();
-int alpm_trans_release();
+int alpm_trans_commit(void);
+int alpm_trans_release(void);
/*
* Dependencies
diff --git a/lib/libalpm/group.h b/lib/libalpm/group.h
index 64b7f99e..aab84c39 100644
--- a/lib/libalpm/group.h
+++ b/lib/libalpm/group.h
@@ -41,7 +41,7 @@ typedef struct __pmgrp_t {
FREELIST(p); \
} while(0)
-pmgrp_t *grp_new();
+pmgrp_t *grp_new(void);
void grp_free(pmgrp_t *grp);
int grp_cmp(const void *g1, const void *g2);
diff --git a/lib/libalpm/handle.h b/lib/libalpm/handle.h
index df923a84..33803068 100644
--- a/lib/libalpm/handle.h
+++ b/lib/libalpm/handle.h
@@ -52,7 +52,7 @@ typedef struct __pmhandle_t {
#define FREEHANDLE(p) do { if (p) { handle_free(p); p = NULL; } } while (0)
-pmhandle_t *handle_new();
+pmhandle_t *handle_new(void);
int handle_free(pmhandle_t *handle);
int handle_set_option(pmhandle_t *handle, unsigned char val, unsigned long data);
int handle_get_option(pmhandle_t *handle, unsigned char val, long *data);
diff --git a/lib/libalpm/list.h b/lib/libalpm/list.h
index e625dbff..1be96c20 100644
--- a/lib/libalpm/list.h
+++ b/lib/libalpm/list.h
@@ -46,7 +46,7 @@ typedef struct __pmlist_t PMList;
/* Sort comparison callback function declaration */
typedef int (*pm_fn_cmp) (const void *, const void *);
-PMList *pm_list_new();
+PMList *pm_list_new(void);
void pm_list_free(PMList *list);
PMList *pm_list_add(PMList *list, void *data);
PMList *pm_list_add_sorted(PMList *list, void *data, pm_fn_cmp fn);
diff --git a/lib/libalpm/package.h b/lib/libalpm/package.h
index 41566143..3b8e7b98 100644
--- a/lib/libalpm/package.h
+++ b/lib/libalpm/package.h
@@ -86,7 +86,7 @@ do { \
} \
} while(0)
-pmpkg_t* pkg_new();
+pmpkg_t* pkg_new(void);
pmpkg_t *pkg_dup(pmpkg_t *pkg);
void pkg_free(pmpkg_t *pkg);
pmpkg_t* pkg_dummy(const char *name, const char *version);
diff --git a/lib/libalpm/provide.c b/lib/libalpm/provide.c
index c7e6c69e..315253be 100644
--- a/lib/libalpm/provide.c
+++ b/lib/libalpm/provide.c
@@ -26,6 +26,7 @@
#include "cache.h"
#include "list.h"
#include "db.h"
+#include "provide.h"
/* return a PMList of packages in "db" that provide "package"
*/
diff --git a/lib/libalpm/trans.h b/lib/libalpm/trans.h
index 09791a94..e030e25d 100644
--- a/lib/libalpm/trans.h
+++ b/lib/libalpm/trans.h
@@ -61,7 +61,7 @@ do { \
} \
} while(0)
-pmtrans_t *trans_new();
+pmtrans_t *trans_new(void);
void trans_free(pmtrans_t *trans);
int trans_init(pmtrans_t *trans, unsigned char type, unsigned char flags, alpm_trans_cb_event event, alpm_trans_cb_conv conv);
int trans_sysupgrade(pmtrans_t *trans);