ttxml: removed cruft from tests
[ccan] / ccan / endian / _info
index 52e919365017f675bdd80f1f6530cda0209e6bb9..84e9597f0f8927ec4c08314ddd629c0a008c4820 100644 (file)
  *             if (argc != 2)
  *                     errx(1, "Usage: %s <value>", argv[0]);
  *
+ *             value = atoi(argv[1]);
  *             printf("native:        %08x\n", value);
  *             printf("little-endian: %08x\n", cpu_to_le32(value));
  *             printf("big-endian:    %08x\n", cpu_to_be32(value));
- *             printf("byte-reversed: %08x\n", swab_u32(value));
+ *             printf("byte-reversed: %08x\n", bswap_32(value));
  *             exit(0);
  *     }
  *
- * Licence: LGPL (2 or any later version)
+ * License: LGPL (v2.1 or any later version)
  * Author: Rusty Russell <rusty@rustcorp.com.au>
  */
 int main(int argc, char *argv[])