httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@locus.apache.org
Subject cvs commit: apache-2.0/src/lib/apr/file_io/unix filestat.c
Date Fri, 14 Apr 2000 10:16:13 GMT
martin      00/04/14 03:16:12

  Modified:    src/lib/apr/file_io/unix filestat.c
  Log:
  Remove unused variables
  
  Revision  Changes    Path
  1.23      +2 -4      apache-2.0/src/lib/apr/file_io/unix/filestat.c
  
  Index: filestat.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/apr/file_io/unix/filestat.c,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -u -r1.22 -r1.23
  --- filestat.c	2000/04/14 00:55:00	1.22
  +++ filestat.c	2000/04/14 10:16:12	1.23
  @@ -83,12 +83,11 @@
   ap_status_t ap_getfileinfo(ap_finfo_t *finfo, ap_file_t *thefile)
   {
       struct stat info;
  -    int rv;
   
       if (finfo == NULL || thefile == NULL)
           return APR_EBADARG;
   
  -    if ((rv = fstat(thefile->filedes, &info)) == 0) {
  +    if (fstat(thefile->filedes, &info) == 0) {
           finfo->protection = info.st_mode;
           finfo->filetype = filetype_from_mode(info.st_mode);
           finfo->user = info.st_uid;
  @@ -108,12 +107,11 @@
   ap_status_t ap_stat(ap_finfo_t *finfo, const char *fname, ap_context_t *cont)
   {
       struct stat info;
  -    int rv;
   
       if(finfo == NULL || fname == NULL)
           return APR_EBADARG;
   
  -    if ((rv = stat(fname, &info)) == 0) {
  +    if (stat(fname, &info) == 0) {
           finfo->protection = info.st_mode;
           finfo->filetype = filetype_from_mode(info.st_mode);
           finfo->user = info.st_uid;
  
  
  

Mime
View raw message