]> git.ozlabs.org Git - ccan/blobdiff - ccan/noerr/_info
base64: fix for unsigned chars (e.g. ARM).
[ccan] / ccan / noerr / _info
index 7310e1bd4693d1c296760eeae27cf12ba017d2d8..85f1f6f9c3906496969eba2b234fe11146b92749 100644 (file)
@@ -1,6 +1,6 @@
+#include "config.h"
 #include <stdio.h>
 #include <string.h>
-#include "config.h"
 
 /**
  * noerr - routines for cleaning up without blatting errno
@@ -37,7 +37,7 @@
  *                     return false;
  *             }
  *             // A short write means out of space.
- *             if (ret < strlen(string)) {
+ *             if (ret < (int)strlen(string)) {
  *                     unlink(file);
  *                     errno = ENOSPC;
  *                     return false;
@@ -45,7 +45,7 @@
  *             return true;
  *     }
  *
- * License: Public domain
+ * License: CC0 (Public domain)
  * Author: Rusty Russell <rusty@rustcorp.com.au>
  */
 int main(int argc, char *argv[])