add .gitignore
[remotetop.git] / td_smsg.c
index 3bfded6..fd27bc3 100644 (file)
--- a/td_smsg.c
+++ b/td_smsg.c
@@ -27,6 +27,7 @@
  * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 #include <string.h>
+#include <time.h>
 
 #include "tlog.h"
 #include "connection.h"
@@ -41,7 +42,6 @@ addMsgTop( MassiveUnit *mu, TCMsgTop *tmsg, struct in_addr *client ) {
         memcpy( &(unit.top), tmsg, sizeof( TCMsgTop ));
         unit.stamp=time(NULL);
         memcpy( &(unit.ip), client, sizeof(struct in_addr) );
-        unit.flag = 0;
 
         fillUnit(mu, &unit);
 }