Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/server.c
diff options
context:
space:
mode:
authorAaron Griffin <aaron@archlinux.org>2006-10-20 06:26:55 +0000
committerAaron Griffin <aaron@archlinux.org>2006-10-20 06:26:55 +0000
commit7131b7ac87b9793c06d7b7e59df103658dd76ec7 (patch)
treed20bcf43f1d93118577c50977ce34cc6340460e1 /lib/libalpm/server.c
parente7f886aac3991b6a12ede9781af741b402dffb64 (diff)
A handful of minor changes:
* Removed the PMList typedef, in favor of the same naming scheme other structs use 'pmlist_t' * Added a time stamp on debug output, to make it more informational * Moved alpm_db_register to _alpm_db_register, making the public function not take a callback parameter
Diffstat (limited to 'lib/libalpm/server.c')
-rw-r--r--lib/libalpm/server.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/libalpm/server.c b/lib/libalpm/server.c
index 86271b57..7b2f037c 100644
--- a/lib/libalpm/server.c
+++ b/lib/libalpm/server.c
@@ -133,7 +133,7 @@ void _alpm_server_free(void *data)
*
* RETURN: 0 for successful download, 1 on error
*/
-int _alpm_downloadfiles(PMList *servers, const char *localpath, PMList *files)
+int _alpm_downloadfiles(pmlist_t *servers, const char *localpath, pmlist_t *files)
{
return(!!_alpm_downloadfiles_forreal(servers, localpath, files, NULL, NULL));
}
@@ -151,15 +151,15 @@ int _alpm_downloadfiles(PMList *servers, const char *localpath, PMList *files)
* -1 if the mtimes are identical
* 1 on error
*/
-int _alpm_downloadfiles_forreal(PMList *servers, const char *localpath,
- PMList *files, const char *mtime1, char *mtime2)
+int _alpm_downloadfiles_forreal(pmlist_t *servers, const char *localpath,
+ pmlist_t *files, const char *mtime1, char *mtime2)
{
int fsz;
netbuf *control = NULL;
- PMList *lp;
+ pmlist_t *lp;
int done = 0;
- PMList *complete = NULL;
- PMList *i;
+ pmlist_t *complete = NULL;
+ pmlist_t *i;
if(files == NULL) {
return(0);
@@ -545,8 +545,8 @@ char *_alpm_fetch_pkgurl(char *target)
_alpm_log(PM_LOG_DEBUG, _(" %s is already in the current directory\n"), fn);
} else {
pmserver_t *server;
- PMList *servers = NULL;
- PMList *files;
+ pmlist_t *servers = NULL;
+ pmlist_t *files;
if((server = (pmserver_t *)malloc(sizeof(pmserver_t))) == NULL) {
_alpm_log(PM_LOG_ERROR, _("malloc failure: could not allocate %d bytes"), sizeof(pmserver_t));