URI:
       support 64-bit time_t (if twitter still exists by then :P) - tscrape - twitter scraper
  HTML git clone git://git.codemadness.org/tscrape
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit 7beb8f73e99bc0208495a3a009ec2309ae3b2903
   DIR parent b9a0b224926eedba39864537e1d5d2d6b2e3c7c8
  HTML Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       Date:   Sat, 23 Apr 2016 13:16:11 +0200
       
       support 64-bit time_t (if twitter still exists by then :P)
       
       Diffstat:
         M tscrape.c                           |       6 +++---
       
       1 file changed, 3 insertions(+), 3 deletions(-)
       ---
   DIR diff --git a/tscrape.c b/tscrape.c
       @@ -73,11 +73,11 @@ printescape(const char *s)
        int
        strtotime(const char *s, time_t *t)
        {
       -        long l;
       +        long long l;
                char *e;
        
                errno = 0;
       -        l = strtol(s, &e, 10);
       +        l = strtoll(s, &e, 10);
                if (*s == '\0' || *e != '\0')
                        return -1;
                if (t)
       @@ -110,7 +110,7 @@ printtweet(void)
        
                r = parsetime(timestamp, &t, buf, sizeof(buf));
                if (r != -1)
       -                printf("%ld", (long)t);
       +                printf("%lld", (long long)t);
                putchar('\t');
                if (r != -1)
                        fputs(buf, stdout);