Fix NSEC compile problem, and properly parse the rev-tree cmd line.
authorLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 21 Apr 2005 16:58:24 +0000 (09:58 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 21 Apr 2005 16:58:24 +0000 (09:58 -0700)
The rev-tree thing just happened to work. It shouldn't have.

read-cache.c
rev-tree.c

index d1cc1e8c787da8ab7e44d5869a408b66fb4f0ef1..44a713aed6d5d3f051dd7a709ceb9044869cf783 100644 (file)
@@ -24,9 +24,9 @@ int cache_match_stat(struct cache_entry *ce, struct stat *st)
         * as long as it is in the inode cache you get right nsec
         * but after it gets flushed, you get zero nsec.
         */
-       if (ce->ce_mtime.nsec != htonl(st->st_mtim.tv_nsec)
+       if (ce->ce_mtime.nsec != htonl(st->st_mtim.tv_nsec))
                changed |= MTIME_CHANGED;
-       if (ce->ce_ctime.nsec != htonl(st->st_ctim.tv_nsec)
+       if (ce->ce_ctime.nsec != htonl(st->st_ctim.tv_nsec))
                changed |= CTIME_CHANGED;
 #endif 
 
index ebeceb070b72744b47873c0a562d3ec692269a96..03c900f459c0e6ae7fc9455589be00375f44eac8 100644 (file)
@@ -89,8 +89,7 @@ int main(int argc, char **argv)
                char *arg = argv[i];
 
                if (!strcmp(arg, "--cache")) {
-                       read_cache_file(argv[2]);
-                       i++;
+                       read_cache_file(argv[++i]);
                        continue;
                }