mirror of
https://github.com/moparisthebest/pacman
synced 2025-03-01 01:41:52 -05:00
fixed compilation warnings
This commit is contained in:
parent
6a2230dce1
commit
b2df466ffd
@ -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
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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"
|
||||
*/
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user