X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Faltstack%2F_info;h=b8cf6a87769afe692aa8fd5a1fc1b0d7691ed48e;hb=cedcaa1bbb44cad610973c449340c0fde9ae0280;hp=a33af2cea802934cce4f5c6dd263ebde4fa382af;hpb=2bf37a605e2ad2cb7321cedea8739aa611e4b160;p=ccan diff --git a/ccan/altstack/_info b/ccan/altstack/_info index a33af2ce..b8cf6a87 100644 --- a/ccan/altstack/_info +++ b/ccan/altstack/_info @@ -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) { #ifdef __x86_64__ - printf("1\n"); + printf("\n"); #else - printf("0\n"); + printf("Only x86-64 supported\n"); #endif }