modules: update documentation examples so they compile under ccanlint.
[ccan] / ccan / endian / _info
index 52e919365017f675bdd80f1f6530cda0209e6bb9..400f7745569a2f0ba2c78a26ac410631c93e4c41 100644 (file)
@@ -29,6 +29,7 @@
  *             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));