prepare to upload
[debian/gcpegg] / eggui.c
diff --git a/eggui.c b/eggui.c
index e3eb431fd3451681939b1df96c6df2dff0848e96..b369e863fbde01af7c4bdb55611eb4ce0dbe0ac8 100644 (file)
--- a/eggui.c
+++ b/eggui.c
@@ -126,17 +126,20 @@ int32 UIUpdate(int32 cres, CollectRecord *coll) {
   printw("EGG %s ID %d REG %s %s", eggtable[0].name, eggtable[0].id,
         configuredREG->reg_name, Version);
 
-  tmstr = ctime(&inittm); tmstr[strlen(tmstr)-1] = 0;
+  time_t inittm_val = inittm;
+  tmstr = ctime(&inittm_val); tmstr[strlen(tmstr)-1] = 0;
   move(line++, 5);
   printw("Up since       %25s", tmstr);
 
   move(line++, 5);
   now = getzulutime(NULL);
-  tmstr = ctime(&now); tmstr[strlen(tmstr)-1] = 0;
+  time_t now_val = now;
+  tmstr = ctime(&now_val); tmstr[strlen(tmstr)-1] = 0;
   printw("Last sample at %25s", tmstr);
 
   move(line++, 5);
-  tmstr = ctime(&lastDataSent);
+  time_t lastDataSent_val = lastDataSent;
+  tmstr = ctime(&lastDataSent_val);
   tmstr[strlen(tmstr)-1] = 0;
   printw("Last packet at %25s", lastDataSent == 0 ? "Never" : tmstr);