$ make stt
CC stt.c
stt.c: In function ‘loadtimes’:
stt.c:95:20: warning: implicit declaration of function ‘getline’ [-Wimplicit-function-declaration]
while ((linelen = getline(&readline, &linesize, fp)) != -1) {
^~~~~~~
stt.c:96:10: warning: implicit declaration of function ‘strdup’ [-Wimplicit-function-declaration]
line = strdup(readline);
^~~~~~
stt.c:96:8: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
line = strdup(readline);
^
stt.c:97:9: warning: implicit declaration of function ‘strsep’ [-Wimplicit-function-declaration]
tmp = strsep(&line, ";");
^~~~~~
stt.c:97:7: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
tmp = strsep(&line, ";");
^
stt.c:103:7: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
tmp = strsep(&line, ";");
^
stt.c:106:8: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
task = strdup(line);
^
stt.c: In function ‘writetimes’:
stt.c:124:18: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 3 has type ‘time_t {aka long int}’ [-Wformat=]
fprintf(fp, "%lld;%lld;%s\n", p->starttime, p->endtime, p->task);
^
stt.c:124:23: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 4 has type ‘time_t {aka long int}’ [-Wformat=]
fprintf(fp, "%lld;%lld;%s\n", p->starttime, p->endtime, p->task);
^
stt.c: In function ‘timesnode_add’:
stt.c:200:11: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
p->task = strdup(task);
^
stt.c: In function ‘main’:
stt.c:353:3: warning: implicit declaration of function ‘localtime_r’ [-Wimplicit-function-declaration]
localtime_r(nowtime, &today);
^~~~~~~~~~~
CC -o stt
stt.o: In function `opentimesfile':
stt.c:(.text+0x4e): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking