added support for 64 bit file offsets under Solaris 2.6. Not tested
[rsync/rsync.git] / main.c
diff --git a/main.c b/main.c
index baae9d4..c0e15d6 100644 (file)
--- a/main.c
+++ b/main.c
@@ -92,14 +92,14 @@ static void report(int f)
   }
 
 #if HAVE_LONGLONG
-  printf("wrote %lld bytes  read %lld bytes  %g bytes/sec\n",
+  printf("wrote %lld bytes  read %lld bytes  %.2f bytes/sec\n",
         (long long)out,(long long)in,(in+out)/(0.5 + (t-starttime)));
-  printf("total size is %lld  speedup is %g\n",
+  printf("total size is %lld  speedup is %.2f\n",
         (long long)tsize,(1.0*tsize)/(in+out));
 #else
-  printf("wrote %ld bytes  read %ld bytes  %g bytes/sec\n",
+  printf("wrote %ld bytes  read %ld bytes  %.2f bytes/sec\n",
         (long)out,(long)in,(in+out)/(0.5 + (t-starttime)));
-  printf("total size is %ld  speedup is %g\n",
+  printf("total size is %ld  speedup is %.2f\n",
         (long)tsize,(1.0*tsize)/(in+out));
 #endif
 }
@@ -273,9 +273,9 @@ oom:
 
 static char *get_local_name(struct file_list *flist,char *name)
 {
-  struct stat st;
+  STRUCT_STAT st;
 
-  if (stat(name,&st) == 0) {
+  if (do_stat(name,&st) == 0) {
     if (S_ISDIR(st.st_mode)) {
       if (chdir(name) != 0) {
        fprintf(FERROR,"chdir %s : %s (1)\n",name,strerror(errno));