Add const to some ALPM function signatures
char * -> const char *. Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
619c165d36
commit
cb7ba4e4e5
|
@ -53,7 +53,7 @@
|
|||
* @param target the name of the file target to add
|
||||
* @return 0 on success, -1 on error (pm_errno is set accordingly)
|
||||
*/
|
||||
int SYMEXPORT alpm_add_target(char *target)
|
||||
int SYMEXPORT alpm_add_target(const char *target)
|
||||
{
|
||||
pmpkg_t *pkg = NULL;
|
||||
const char *pkgname, *pkgver;
|
||||
|
|
|
@ -419,10 +419,10 @@ int alpm_trans_interrupt(void);
|
|||
int alpm_trans_release(void);
|
||||
|
||||
int alpm_sync_sysupgrade(int enable_downgrade);
|
||||
int alpm_sync_target(char *target);
|
||||
int alpm_sync_dbtarget(char *db, char *target);
|
||||
int alpm_add_target(char *target);
|
||||
int alpm_remove_target(char *target);
|
||||
int alpm_sync_target(const char *target);
|
||||
int alpm_sync_dbtarget(const char *db, const char *target);
|
||||
int alpm_add_target(const char *target);
|
||||
int alpm_remove_target(const char *target);
|
||||
|
||||
/*
|
||||
* Dependencies and conflicts
|
||||
|
|
|
@ -46,7 +46,7 @@
|
|||
#include "handle.h"
|
||||
#include "alpm.h"
|
||||
|
||||
int SYMEXPORT alpm_remove_target(char *target)
|
||||
int SYMEXPORT alpm_remove_target(const char *target)
|
||||
{
|
||||
pmpkg_t *info;
|
||||
pmtrans_t *trans;
|
||||
|
|
|
@ -248,7 +248,7 @@ static int sync_pkg(pmpkg_t *spkg, alpm_list_t *pkg_list)
|
|||
return(0);
|
||||
}
|
||||
|
||||
static int sync_target(alpm_list_t *dbs_sync, char *target)
|
||||
static int sync_target(alpm_list_t *dbs_sync, const char *target)
|
||||
{
|
||||
alpm_list_t *i, *j;
|
||||
alpm_list_t *known_pkgs = NULL;
|
||||
|
@ -309,7 +309,7 @@ static int sync_target(alpm_list_t *dbs_sync, char *target)
|
|||
* @param target the name of the sync target to add
|
||||
* @return 0 on success, -1 on error (pm_errno is set accordingly)
|
||||
*/
|
||||
int SYMEXPORT alpm_sync_dbtarget(char *dbname, char *target)
|
||||
int SYMEXPORT alpm_sync_dbtarget(const char *dbname, const char *target)
|
||||
{
|
||||
alpm_list_t *i;
|
||||
alpm_list_t *dbs_sync;
|
||||
|
@ -342,7 +342,7 @@ int SYMEXPORT alpm_sync_dbtarget(char *dbname, char *target)
|
|||
* @param target the name of the sync target to add
|
||||
* @return 0 on success, -1 on error (pm_errno is set accordingly)
|
||||
*/
|
||||
int SYMEXPORT alpm_sync_target(char *target)
|
||||
int SYMEXPORT alpm_sync_target(const char *target)
|
||||
{
|
||||
alpm_list_t *dbs_sync;
|
||||
|
||||
|
|
Loading…
Reference in New Issue