X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/f6b384d41f056dea0ec9a0abe873be078fb09570..7f2a1f651e6db7483bcb3d2678dcb60cc4e54582:/tls.c diff --git a/tls.c b/tls.c index 80d20c8b..6c0466f8 100644 --- a/tls.c +++ b/tls.c @@ -65,14 +65,8 @@ static void list_file(const char *fname) struct tm *mt; char datebuf[50]; char linkbuf[4096]; - int ret; - -#if SUPPORT_LINKS - ret = do_lstat(fname, &buf); -#else - ret = do_stat(fname, &buf); -#endif - if (ret < 0) + + if (do_lstat(fname, &buf) < 0) failed("stat", fname); /* The size of anything but a regular file is probably not