Changeset ee6b30f for functions.c
- Timestamp:
- Oct 8, 2017, 6:02:19 PM (7 years ago)
- Branches:
- master
- Children:
- 4fd3c04
- Parents:
- 09530e6
- git-author:
- Anders Kaseorg <andersk@mit.edu> (10/07/17 03:25:44)
- git-committer:
- Anders Kaseorg <andersk@mit.edu> (10/08/17 18:02:19)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
functions.c
rb61ad80 ree6b30f 1226 1226 FILE *file; 1227 1227 time_t now; 1228 struct tm tm; 1228 1229 va_list ap; 1229 1230 … … 1237 1238 now = time(NULL); 1238 1239 1239 tmpbuff = owl_util_format_time(localtime (&now));1240 tmpbuff = owl_util_format_time(localtime_r(&now, &tm)); 1240 1241 fprintf(file, "[%d - %s - %lds]: ", 1241 1242 (int) getpid(), tmpbuff, now - owl_global_get_starttime(&g)); … … 1775 1776 char buff[MAXPATHLEN+1]; 1776 1777 time_t start; 1778 struct tm tm; 1777 1779 int up, days, hours, minutes; 1778 1780 owl_fmtext fm; … … 1800 1802 owl_fmtext_append_normal(&fm, "\n"); 1801 1803 1802 tmpbuff = owl_util_format_time(localtime (&start));1804 tmpbuff = owl_util_format_time(localtime_r(&start, &tm)); 1803 1805 owl_fmtext_appendf_normal(&fm, " Startup Time: %s\n", tmpbuff); 1804 1806 g_free(tmpbuff); … … 3424 3426 char *date; 3425 3427 time_t now; 3428 struct tm tm; 3426 3429 char *buff; 3427 3430 3428 3431 now = time(NULL); 3429 date = owl_util_format_time(localtime (&now));3432 date = owl_util_format_time(localtime_r(&now, &tm)); 3430 3433 3431 3434 buff = g_strdup_printf("%s %s", date, string);
Note: See TracChangeset
for help on using the changeset viewer.