Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 15 lines (12 sloc) 0.258 kB
dbd57f9 @pclouds Add test-index-version
pclouds authored
1 #include "cache.h"
2
84d32bf sparse: Fix mingw_main() argument number/type errors
Ramsay Jones authored
3 int main(int argc, char **argv)
dbd57f9 @pclouds Add test-index-version
pclouds authored
4 {
5 struct cache_header hdr;
6 int version;
7
8 memset(&hdr,0,sizeof(hdr));
9 if (read(0, &hdr, sizeof(hdr)) != sizeof(hdr))
10 return 0;
11 version = ntohl(hdr.hdr_version);
12 printf("%d\n", version);
13 return 0;
14 }
Something went wrong with that request. Please try again.