Some superficial code tweaks.
[rsync/rsync.git] / util.c
diff --git a/util.c b/util.c
index 4b46b35..a01a38d 100644 (file)
--- a/util.c
+++ b/util.c
@@ -888,7 +888,7 @@ int pop_dir(char *dir)
  * The string " (in MODNAME)" may also be appended.  The returned pointer
  * remains valid until the next time full_fname() is called.
  **/
-char *full_fname(char *fn)
+char *full_fname(const char *fn)
 {
        static char *result = NULL;
        char *m1, *m2, *m3;
@@ -1042,7 +1042,6 @@ int msleep(int t)
        struct timeval tval, t1, t2;
 
        gettimeofday(&t1, NULL);
-       gettimeofday(&t2, NULL);
 
        while (tdiff < t) {
                tval.tv_sec = (t-tdiff)/1000;