Xinqi Bao's Git

Add comment for FreeBSD to config.mk
[slstatus.git] / components / datetime.c
index 12d7717..c3efae3 100644 (file)
@@ -11,7 +11,7 @@ datetime(const char *fmt)
 
        t = time(NULL);
        if (!strftime(buf, sizeof(buf), fmt, localtime(&t))) {
-               fprintf(stderr, "strftime: Result string exceeds buffer size\n");
+               warn("strftime: Result string exceeds buffer size");
                return NULL;
        }