]> git.ozlabs.org Git - ccan/blobdiff - ccan/short_types/_info
short_types: fix example for 64 bit platforms
[ccan] / ccan / short_types / _info
index bc69b1b9968db96fc6cc14f769267c3a33433e0a..333d84ef230cf4885b8c7e2e873e16aa95d73226 100644 (file)
@@ -29,7 +29,7 @@
  *                          unsigned int *posix_total, unsigned int *sht_total,
  *                          unsigned int *size_total)
  *     {
- *             printf("\t%ssigned %s: POSIX %i%%, short %i%%\n",
+ *             printf("\t%ssigned %s: POSIX %zu%%, short %zu%%\n",
  *                    sht[0] == 'u' ? "un" : "",
  *                    sht+1,
  *                    strlen(posix)*100 / size,
@@ -65,7 +65,8 @@
  *             return 0;
  *     }
  *
- * Licence: LGPL (2 or any later version)
+ * License: Public domain
+ * Author: Rusty Russell <rusty@rustcorp.com.au>
  */
 int main(int argc, char *argv[])
 {