[PATCH] Remove the explicit Makefile dependencies description
[gitweb.git] / local-pull.c
index 2f06fbee8b840a7ae642f5a22e2cb993687f3470..29ae1663958317b612ff5f26707c16612e8b91bc 100644 (file)
@@ -54,7 +54,7 @@ int fetch(unsigned char *sha1)
                }
                map = mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, ifd, 0);
                close(ifd);
-               if (-1 == (int)(long)map) {
+               if (map == MAP_FAILED) {
                        fprintf(stderr, "cannot mmap %s\n", filename);
                        return -1;
                }
@@ -101,7 +101,7 @@ int fetch_ref(char *ref, unsigned char *sha1)
        return 0;
 }
 
-static const char *local_pull_usage = 
+static const char local_pull_usage[] =
 "git-local-pull [-c] [-t] [-a] [-d] [-v] [-w filename] [--recover] [-l] [-s] [-n] commit-id path";
 
 /*