ttemp: OpenBSD: use long long format string type - spoon - dwm status utility (2f30 fork)
 (HTM) git clone git://src.adamsgaard.dk/spoon
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) LICENSE
       ---
 (DIR) commit dd94bee628add1dad6d41fc2223a40b87311d871
 (DIR) parent 0cd95a66fd4f86341168740f3402bc07690cbe3f
 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       Date:   Sun,  1 Jul 2018 11:40:59 +0200
       
       ttemp: OpenBSD: use long long format string type
       
       Diffstat:
         M temp.c                              |       2 +-
       
       1 file changed, 1 insertion(+), 1 deletion(-)
       ---
 (DIR) diff --git a/temp.c b/temp.c
       t@@ -22,7 +22,7 @@ tempread(void *arg, char *buf, size_t len)
                if (sysctl(mib, 5, &temp, &sz, NULL, 0) == -1)
                        return -1;
                /* temp.value is in kelvin so convert to celsius for display */
       -        snprintf(buf, len, "%d", (temp.value - 273150000) / 1000000);
       +        snprintf(buf, len, "%lld", (temp.value - 273150000) / 1000000);
                return 0;
        }
        #elif __linux__