@@ -448,7 +448,7 @@ static int copy(const char *path,
448
448
base += 1 ;
449
449
}
450
450
} else {
451
- base = strlen (path );
451
+ base = ( int ) strlen (path );
452
452
}
453
453
}
454
454
@@ -598,9 +598,9 @@ static int copy(const char *path,
598
598
ad_setname (& ad , utompath (dvolume .vol , basename (to .p_path )));
599
599
}
600
600
601
- ad_setdate (& ad , AD_DATE_CREATE | AD_DATE_UNIX , st .st_mtime );
602
- ad_setdate (& ad , AD_DATE_MODIFY | AD_DATE_UNIX , st .st_mtime );
603
- ad_setdate (& ad , AD_DATE_ACCESS | AD_DATE_UNIX , st .st_mtime );
601
+ ad_setdate (& ad , AD_DATE_CREATE | AD_DATE_UNIX , ( uint32_t ) st .st_mtime );
602
+ ad_setdate (& ad , AD_DATE_MODIFY | AD_DATE_UNIX , ( uint32_t ) st .st_mtime );
603
+ ad_setdate (& ad , AD_DATE_ACCESS | AD_DATE_UNIX , ( uint32_t ) st .st_mtime );
604
604
ad_setdate (& ad , AD_DATE_BACKUP , AD_DATE_START );
605
605
ad_flush (& ad );
606
606
ad_close (& ad , ADFLAGS_HF );
@@ -686,9 +686,9 @@ static int copy(const char *path,
686
686
ad_setname (& ad , utompath (dvolume .vol , basename (to .p_path )));
687
687
}
688
688
689
- ad_setdate (& ad , AD_DATE_CREATE | AD_DATE_UNIX , st .st_mtime );
690
- ad_setdate (& ad , AD_DATE_MODIFY | AD_DATE_UNIX , st .st_mtime );
691
- ad_setdate (& ad , AD_DATE_ACCESS | AD_DATE_UNIX , st .st_mtime );
689
+ ad_setdate (& ad , AD_DATE_CREATE | AD_DATE_UNIX , ( uint32_t ) st .st_mtime );
690
+ ad_setdate (& ad , AD_DATE_MODIFY | AD_DATE_UNIX , ( uint32_t ) st .st_mtime );
691
+ ad_setdate (& ad , AD_DATE_ACCESS | AD_DATE_UNIX , ( uint32_t ) st .st_mtime );
692
692
ad_setdate (& ad , AD_DATE_BACKUP , AD_DATE_START );
693
693
ad_flush (& ad );
694
694
ad_close (& ad , ADFLAGS_HF );
@@ -877,7 +877,7 @@ static int ftw_copy_file(const struct FTW *entp _U_,
877
877
878
878
wtotal = 0 ;
879
879
880
- while ((rcount = read (from_fd , buf , bufsize )) > 0 ) {
880
+ while ((rcount = ( int ) read (from_fd , buf , bufsize )) > 0 ) {
881
881
for (bufp = buf , wresid = rcount ; ;
882
882
bufp += wcount , wresid -= wcount ) {
883
883
wcount = write (to_fd , bufp , wresid );
@@ -938,7 +938,7 @@ static int ftw_copy_link(const struct FTW *p _U_,
938
938
int len ;
939
939
char llink [PATH_MAX ];
940
940
941
- if ((len = readlink (spath , llink , sizeof (llink ) - 1 )) == -1 ) {
941
+ if ((len = ( int ) readlink (spath , llink , sizeof (llink ) - 1 )) == -1 ) {
942
942
SLOG ("readlink: %s: %s" , spath , strerror (errno ));
943
943
return 1 ;
944
944
}
0 commit comments