void glite_lb_print_stat_fields(void **,edg_wll_JobStat *);
void glite_lb_dump_stat_fields(void);
+#include <time.h>
+
+static char *TimeToStr(time_t t)
+{
+ struct tm *tm = gmtime(&t);
+ static char tbuf[1000];
+
+ sprintf(tbuf,"'%4d-%02d-%02d %02d:%02d:%02d UTC'",
+ tm->tm_year+1900, tm->tm_mon+1, tm->tm_mday,
+ tm->tm_hour,tm->tm_min,tm->tm_sec);
+
+ return tbuf;
+}
+
#ifdef __cplusplus
}
static char *me;
-static char tbuf[256];
-
-char *TimeToStr(time_t t)
-{
- struct tm *tm = gmtime(&t);
-
- sprintf(tbuf,"'%4d-%02d-%02d %02d:%02d:%02d UTC'",
- tm->tm_year+1900, tm->tm_mon+1, tm->tm_mday,
- tm->tm_hour,tm->tm_min,tm->tm_sec);
-
- return tbuf;
-}
-
static void usage(char *cmd)
{
if ( !cmd )