Commit 933a98d8 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(add_text_in_conf): Extract the seconds from the current_time.

(create_text_add_miscs): Ditto.
(do_create_text): Ditto.
(add_recipient): Ditto.
(add_comment): Ditto.
(add_footnote): Ditto.
parent e1190a09
/*
* $Id: text.c,v 0.104 2003/05/09 18:44:17 ceder Exp $
* $Id: text.c,v 0.105 2003/07/12 21:30:15 ceder Exp $
* Copyright (C) 1991-2002 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -107,7 +107,7 @@ add_text_in_conf(Conference * conf_c,
{
Local_text_no res;
conf_c->last_written = current_time;
conf_c->last_written = current_time.tv_sec;
/* Add number last on the text_list */
res = l2g_first_appendable_key(&conf_c->texts);
......@@ -2081,7 +2081,7 @@ create_text_add_miscs(Text_no new_text,
misc[i].datum.recipient, misc[i].type) != OK)
return FAILURE;
GET_C_STAT(conf_c, misc[i].datum.recipient, FAILURE);
conf_c->last_written = current_time;
conf_c->last_written = current_time.tv_sec;
break;
case loc_no: /* Ignore loc_no. */
......@@ -2445,7 +2445,7 @@ do_create_text(const String message,
*ret_stat = t_stat;
t_stat->author = anonymous?0:ACTPERS;
t_stat->creation_time = current_time;
t_stat->creation_time = current_time.tv_sec;
t_stat->no_of_lines = count_lines(message);
t_stat->no_of_chars = s_strlen(message);
......@@ -2842,7 +2842,7 @@ add_recipient(Text_no text_no,
if (t_stat->author != ACTPERS)
ADD_MISC(t_stat, sent_by, sender, ACTPERS);
ADD_MISC(t_stat, sent_at, sent_at, current_time);
ADD_MISC(t_stat, sent_at, sent_at, current_time.tv_sec);
mark_text_as_changed(text_no);
send_async_add_recipient(text_no, t_stat, conf_no, type);
......@@ -2969,7 +2969,7 @@ add_comment(Text_no comment,
if (child_s->author != ACTPERS)
ADD_MISC(child_s, sent_by, sender, ACTPERS);
ADD_MISC(child_s, sent_at, sent_at, current_time);
ADD_MISC(child_s, sent_at, sent_at, current_time.tv_sec);
mark_text_as_changed(comment);
return OK;
......@@ -3079,7 +3079,7 @@ add_footnote(Text_no footnote,
if (do_add_footnote(footnote, footnote_to) != OK)
return FAILURE;
ADD_MISC(text_s, sent_at, sent_at, current_time);
ADD_MISC(text_s, sent_at, sent_at, current_time.tv_sec);
mark_text_as_changed(footnote);
return OK;
......
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