libDtCmP: use TIRPC on linux, fix some warnings

This commit is contained in:
Jon Trulson
2018-05-26 13:07:40 -06:00
parent 2bcd57ce33
commit 2a77e84e87
2 changed files with 4 additions and 1 deletions

View File

@@ -1014,7 +1014,7 @@ init_time()
if (getenv("TZ") == NULL){
char *tzptr;
tzptr = malloc(strlen(tzname[0]) + strlen(tzname[1]) + 10);
sprintf (tzptr,"TZ=%s%d%s", tzname[0], timezone/3600, tzname[1]);
sprintf (tzptr,"TZ=%s%ld%s", tzname[0], timezone/3600, tzname[1]);
putenv(tzptr);
tzset();
}