Bugs found with clang

  From clang:

  extsmaild.c:1435:32: warning: format specifies type 'int' but the argument has type 'time_t' (aka 'long') [-Wformat]
        printf("%d seconds\n", external->timeout);
                ~~             ^~~~~~~~~~~~~~~~~
                %ld

  I like this compiler.