1 /* Integration test helper which will print out 2 * the given time in seconds as an unsigned int. 3 */ 4 #include "config.h" 5 6 #include <stdio.h> 7 #include <stdlib.h> 8 #include <unistd.h> 9 10 int main (int argc, char *argv[]) 11 { 12 /* Unsigned int to match what tlsdate -Vraw returns, not time_t */ 13 unsigned int t = argc > 1 ? (unsigned int) atoi(argv[1]) : 14 RECENT_COMPILE_DATE + 1; 15 fwrite (&t, sizeof (t), 1, stdout); 16 fflush(stdout); 17 return 0; 18 } 19