You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by wr...@apache.org on 2009/09/17 23:36:36 UTC
svn commit: r816389 - /httpd/mod_ftp/trunk/modules/ftp/ftp_util.c
Author: wrowe
Date: Thu Sep 17 21:36:36 2009
New Revision: 816389
URL: http://svn.apache.org/viewvc?rev=816389&view=rev
Log:
Fix Rainer's observed compiler warnings, follow unixd.c formatting choice
Modified:
httpd/mod_ftp/trunk/modules/ftp/ftp_util.c
Modified: httpd/mod_ftp/trunk/modules/ftp/ftp_util.c
URL: http://svn.apache.org/viewvc/httpd/mod_ftp/trunk/modules/ftp/ftp_util.c?rev=816389&r1=816388&r2=816389&view=diff
==============================================================================
--- httpd/mod_ftp/trunk/modules/ftp/ftp_util.c (original)
+++ httpd/mod_ftp/trunk/modules/ftp/ftp_util.c Thu Sep 17 21:36:36 2009
@@ -221,19 +221,19 @@
* user and group information for each file
*/
if (fsc->options & FTP_OPT_REMOVEUSERGROUP) {
- dirent->username = apr_psprintf(r->pool, "%d", rr->finfo.user);
- dirent->groupname = apr_psprintf(r->pool, "%d", rr->finfo.group);
+ dirent->username = apr_psprintf(r->pool, "%ld", (long)rr->finfo.user);
+ dirent->groupname = apr_psprintf(r->pool, "%ld", (long)rr->finfo.group);
}
else {
if ((apr_uid_name_get(&dirent->username, rr->finfo.user, r->pool)
!=APR_SUCCESS) || (!dirent->username)
|| (!dirent->username[0])) {
- dirent->username = apr_psprintf(r->pool, "%d", rr->finfo.user);
+ dirent->username = apr_psprintf(r->pool, "%ld", (long)rr->finfo.user);
}
if ((apr_gid_name_get(&dirent->groupname, rr->finfo.group, r->pool)
!=APR_SUCCESS) || (!dirent->groupname)
|| (!dirent->groupname[0])) {
- dirent->groupname = apr_psprintf(r->pool, "%d", rr->finfo.group);
+ dirent->groupname = apr_psprintf(r->pool, "%ld", (long)rr->finfo.group);
}
}