X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fnoerr%2F_info;h=85f1f6f9c3906496969eba2b234fe11146b92749;hp=fee413d3bbc90b23a756bc3a1b7eefb8a1c019e0;hb=HEAD;hpb=570c9c555f076e74f46141bb42b5d1d7ac89f632 diff --git a/ccan/noerr/_info b/ccan/noerr/_info index fee413d3..85f1f6f9 100644 --- a/ccan/noerr/_info +++ b/ccan/noerr/_info @@ -1,6 +1,6 @@ +#include "config.h" #include #include -#include "config.h" /** * noerr - routines for cleaning up without blatting errno @@ -19,7 +19,7 @@ * #include * #include * - * bool write_string_to_file(const char *file, const char *string) + * static bool write_string_to_file(const char *file, const char *string) * { * int ret, fd = open(file, O_WRONLY|O_CREAT|O_EXCL, 0600); * if (fd < 0) @@ -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,8 @@ * return true; * } * - * Licence: LGPL (2 or any later version) + * License: CC0 (Public domain) + * Author: Rusty Russell */ int main(int argc, char *argv[]) {