Commit f6e93655 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(do_add_rec_time): Extract the seconds from the current_time.

(do_add_member): Ditto.
parent fe577d98
/*
* $Id: membership.c,v 0.86 2003/03/23 09:45:10 ceder Exp $
* $Id: membership.c,v 0.87 2003/07/12 21:29:34 ceder Exp $
* Copyright (C) 1991-2002 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -319,7 +319,7 @@ do_add_rec_time (Text_stat * text_stat_ptr,
text_stat_ptr->misc_items[ pos ].type = rec_time;
/* Set value */
text_stat_ptr->misc_items[ pos ].datum.received_at = current_time;
text_stat_ptr->misc_items[ pos ].datum.received_at = current_time.tv_sec;
}
/*
......@@ -826,10 +826,10 @@ do_add_member(Conf_no conf_no, /* Conference to add a new member to. */
init_membership(mship);
mship->added_by = added_by;
mship->added_at = current_time;
mship->added_at = current_time.tv_sec;
mship->conf_no = conf_no;
mship->priority = priority;
mship->last_time_read = current_time;
mship->last_time_read = current_time.tv_sec;
mship->no_of_read_ranges = 0;
mship->read_ranges = NULL;
mship->type = *type;
......@@ -846,7 +846,7 @@ do_add_member(Conf_no conf_no, /* Conference to add a new member to. */
mem = (conf_c->members.members + conf_c->members.no_of_members - 1);
mem->member = pers_no;
mem->added_by = added_by;
mem->added_at = current_time;
mem->added_at = current_time.tv_sec;
mem->type = *type;
mark_conference_as_changed( conf_no );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment