1 /* vi:ai:et:ts=8 sw=2
2  */
3 /*
4  * wzdftpd - a modular and cool ftp server
5  * Copyright (C) 2002-2004  Pierre Chifflier
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation; either version 2
10  * of the License, or (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
20  *
21  * As a special exemption, Pierre Chifflier
22  * and other respective copyright holders give permission to link this program
23  * with OpenSSL, and distribute the resulting executable, without including
24  * the source code for OpenSSL in the source distribution.
25  */
26 
27 #include "wzd_all.h"
28 
29 #ifndef WZD_USE_PCH
30 
31 #include <stdio.h>
32 #include <string.h>
33 /*#include <sys/time.h>*/
34 #include <time.h>
35 
36 #include "wzd_structs.h"
37 
38 #include "wzd_debug.h"
39 
40 #endif /* WZD_USE_PCH */
41 
set_action(wzd_context_t * context,const char * command)42 void set_action(wzd_context_t * context, const char *command)
43 {
44   WZD_ASSERT_VOID( context != NULL );
45 
46   if (context->current_action.command)
47     str_store(context->current_action.command, command);
48   else
49     context->current_action.command = STR(command);
50 
51   /*context->current_action.tm_start = time(NULL);*/
52 }
53