From: Nguyễn Thái Ngọc Duy Date: Sun, 01 May 2016 11:14:51 GMT Subject: [PATCH 35/41] server-info.c: use error_errno() Message-ID: <1462101297-8610-36-git-send-email-pclouds@gmail.com> In-Reply-To: <1462101297-8610-1-git-send-email-pclouds@gmail.com> Signed-off-by: Nguyễn Thái Ngọc Duy --- server-info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server-info.c b/server-info.c index 5a86e29..75dd677 100644 --- a/server-info.c +++ b/server-info.c @@ -36,7 +36,7 @@ static int update_info_file(char *path, int (*generate)(FILE *)) out: if (ret) { - error("unable to update %s: %s", path, strerror(errno)); + error_errno("unable to update %s", path); if (fp) fclose(fp); else if (fd >= 0) -- 2.8.0.rc0.210.gd302cd2