fixed compilation warnings

This commit is contained in:
Aurelien Foret 2005-11-07 12:57:33 +00:00
parent 6a2230dce1
commit b2df466ffd
7 changed files with 10 additions and 9 deletions

View file

@ -51,7 +51,7 @@ typedef struct __pmdepmissing_t PM_DEPMISS;
*/ */
int alpm_initialize(char *root); int alpm_initialize(char *root);
int alpm_release(); int alpm_release(void);
/* /*
* Logging facilities * Logging facilities
@ -255,11 +255,11 @@ enum {
void *alpm_trans_getinfo(unsigned char parm); 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_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_addtarget(char *target);
int alpm_trans_prepare(PM_LIST **data); int alpm_trans_prepare(PM_LIST **data);
int alpm_trans_commit(); int alpm_trans_commit(void);
int alpm_trans_release(); int alpm_trans_release(void);
/* /*
* Dependencies * Dependencies

View file

@ -41,7 +41,7 @@ typedef struct __pmgrp_t {
FREELIST(p); \ FREELIST(p); \
} while(0) } while(0)
pmgrp_t *grp_new(); pmgrp_t *grp_new(void);
void grp_free(pmgrp_t *grp); void grp_free(pmgrp_t *grp);
int grp_cmp(const void *g1, const void *g2); int grp_cmp(const void *g1, const void *g2);

View file

@ -52,7 +52,7 @@ typedef struct __pmhandle_t {
#define FREEHANDLE(p) do { if (p) { handle_free(p); p = NULL; } } while (0) #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_free(pmhandle_t *handle);
int handle_set_option(pmhandle_t *handle, unsigned char val, unsigned long data); 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); int handle_get_option(pmhandle_t *handle, unsigned char val, long *data);

View file

@ -46,7 +46,7 @@ typedef struct __pmlist_t PMList;
/* Sort comparison callback function declaration */ /* Sort comparison callback function declaration */
typedef int (*pm_fn_cmp) (const void *, const void *); typedef int (*pm_fn_cmp) (const void *, const void *);
PMList *pm_list_new(); PMList *pm_list_new(void);
void pm_list_free(PMList *list); void pm_list_free(PMList *list);
PMList *pm_list_add(PMList *list, void *data); PMList *pm_list_add(PMList *list, void *data);
PMList *pm_list_add_sorted(PMList *list, void *data, pm_fn_cmp fn); PMList *pm_list_add_sorted(PMList *list, void *data, pm_fn_cmp fn);

View file

@ -86,7 +86,7 @@ do { \
} \ } \
} while(0) } while(0)
pmpkg_t* pkg_new(); pmpkg_t* pkg_new(void);
pmpkg_t *pkg_dup(pmpkg_t *pkg); pmpkg_t *pkg_dup(pmpkg_t *pkg);
void pkg_free(pmpkg_t *pkg); void pkg_free(pmpkg_t *pkg);
pmpkg_t* pkg_dummy(const char *name, const char *version); pmpkg_t* pkg_dummy(const char *name, const char *version);

View file

@ -26,6 +26,7 @@
#include "cache.h" #include "cache.h"
#include "list.h" #include "list.h"
#include "db.h" #include "db.h"
#include "provide.h"
/* return a PMList of packages in "db" that provide "package" /* return a PMList of packages in "db" that provide "package"
*/ */

View file

@ -61,7 +61,7 @@ do { \
} \ } \
} while(0) } while(0)
pmtrans_t *trans_new(); pmtrans_t *trans_new(void);
void trans_free(pmtrans_t *trans); 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_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); int trans_sysupgrade(pmtrans_t *trans);