]> git.ozlabs.org Git - ccan/blobdiff - ccan/endian/_info
base64: fix for unsigned chars (e.g. ARM).
[ccan] / ccan / endian / _info
index 400f7745569a2f0ba2c78a26ac410631c93e4c41..efe5a8bbde753164ea206d0b4d82c9bc4a9f1763 100644 (file)
@@ -1,6 +1,6 @@
+#include "config.h"
 #include <stdio.h>
 #include <string.h>
-#include "config.h"
 
 /**
  * endian - endian conversion macros for simple types
@@ -15,6 +15,8 @@
  * order (almost everyone else).
  *
  * This module provides conversion routines, inspired by the linux kernel.
+ * It also provides leint32_t, beint32_t etc typedefs, which are annotated for
+ * the sparse checker.
  *
  * Example:
  *     #include <stdio.h>
  *             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: License: CC0 (Public domain)
  * Author: Rusty Russell <rusty@rustcorp.com.au>
  */
 int main(int argc, char *argv[])