diff options
author | root <devnull@localhost> | 1996-11-18 18:02:36 +0000 |
---|---|---|
committer | root <devnull@localhost> | 1996-11-18 18:02:36 +0000 |
commit | d382745d17ae859c0ad43d691648da576bd70907 (patch) | |
tree | 1c62239339a9bcba0f2f3f3d9d9b90b479ae2d3e /url.c | |
parent | 5c46c799f264c30b6414f4a64e27b42ca829bb51 (diff) | |
download | rpm-d382745d17ae859c0ad43d691648da576bd70907.tar.gz rpm-d382745d17ae859c0ad43d691648da576bd70907.tar.bz2 rpm-d382745d17ae859c0ad43d691648da576bd70907.zip |
The Great Renaming
CVS patchset: 1171
CVS date: 1996/11/18 18:02:36
Diffstat (limited to 'url.c')
-rw-r--r-- | url.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -115,19 +115,19 @@ static int urlFtpLogin(char * url, char ** fileNamePtr) { int port; int ftpconn; - message(MESS_DEBUG, "getting %s via anonymous ftp\n", url); + rpmMessage(RPMMESS_DEBUG, "getting %s via anonymous ftp\n", url); buf = alloca(strlen(url) + 1); strcpy(buf, url); urlFtpSplit(buf, &userName, &password, &machineName, &fileName); - message(MESS_DEBUG, "logging into %s as %s, pw %s\n", machineName, + rpmMessage(RPMMESS_DEBUG, "logging into %s as %s, pw %s\n", machineName, userName ? userName : "ftp", password ? password : "(username)"); - proxy = getVar(RPMVAR_FTPPROXY); - portStr = getVar(RPMVAR_FTPPORT); + proxy = rpmGetVar(RPMVAR_FTPPROXY); + portStr = rpmGetVar(RPMVAR_FTPPORT); if (!portStr) { port = -1; } else { @@ -158,7 +158,7 @@ int urlGetFd(char * url, struct urlContext * context) { char * fileName; int fd; - message(MESS_DEBUG, "getting %s via anonymous ftp\n", url); + rpmMessage(RPMMESS_DEBUG, "getting %s via anonymous ftp\n", url); if ((context->ftpControl = urlFtpLogin(url, &fileName)) < 0) return context->ftpControl; @@ -184,14 +184,14 @@ int urlGetFile(char * url, char * dest) { int rc; int fd; - message(MESS_DEBUG, "getting %s via anonymous ftp\n", url); + rpmMessage(RPMMESS_DEBUG, "getting %s via anonymous ftp\n", url); if ((ftpconn = urlFtpLogin(url, &fileName)) < 0) return ftpconn; fd = creat(dest, 0600); if (fd < 0) { - message(MESS_DEBUG, "failed to create %s\n", dest); + rpmMessage(RPMMESS_DEBUG, "failed to create %s\n", dest); ftpClose(ftpconn); free(fileName); return FTPERR_UNKNOWN; |