]> git.ozlabs.org Git - ccan/blobdiff - ccan/altstack/_info
sha256: Make our u32 and u8 fields the same size
[ccan] / ccan / altstack / _info
index 92bd628988d3be5a916baf8f3fba93df832fbbb1..b8cf6a87769afe692aa8fd5a1fc1b0d7691ed48e 100644 (file)
@@ -63,8 +63,8 @@
  *             void *out;
  *
  *             assert(argc == 3);
- *             stk_max = strtol(argv[1], 0, 0) * 1024 * 1024;
- *             vla_sz  = strtol(argv[2], 0, 0) * 1024 * 1024;
+ *             stk_max = strtol(argv[1], NULL, 0) * 1024 * 1024;
+ *             vla_sz  = strtol(argv[2], NULL, 0) * 1024 * 1024;
  *             assert(stk_max > 0 && vla_sz > 0);
  *
  *             snprintf(maps, sizeof(maps), "egrep '\\[stack' /proc/%d/maps", getpid());
@@ -122,11 +122,16 @@ int main(int argc, char *argv[])
        if (strcmp(argv[1], "depends") == 0)
                return 0;
 
+       if (strcmp(argv[1], "testdepends") == 0) {
+               printf("ccan/ptrint\n");
+               return 0;
+       }
+
        if (strcmp(argv[1], "ported") == 0) {
-#if __x86_64__
-               printf("1\n");
+#ifdef __x86_64__
+               printf("\n");
 #else
-               printf("0\n");
+               printf("Only x86-64 supported\n");
 #endif
        }