summaryrefslogtreecommitdiffstats
path: root/src/sessionp.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2013-05-25 13:09:02 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2013-05-25 13:09:02 +0200
commitb7a3d0755ff06dd98d60e27e00b89ad891dbf367 (patch)
tree6c438cb796c1d5c5c82cc4cadcc52282bdc7013d /src/sessionp.c
parentcf15e5dcd2f75edef2f1ddb382ec08b628a7823f (diff)
Fix various warning reported by gcc
Diffstat (limited to 'src/sessionp.c')
-rw-r--r--src/sessionp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sessionp.c b/src/sessionp.c
index e325d06..fb9b0f9 100644
--- a/src/sessionp.c
+++ b/src/sessionp.c
@@ -61,7 +61,7 @@ int session_load(char **cmd_device, char **current_cmd, alloc_data_t *list_free_
int taille;
struct stat stat_rec;
unsigned int buffer_size;
- time_t my_time;
+// time_t my_time;
char *info=NULL;
f_session=fopen(SESSION_FILENAME,"rb");
if(!f_session)
@@ -86,7 +86,7 @@ int session_load(char **cmd_device, char **current_cmd, alloc_data_t *list_free_
}
pos++;
/* load time */
- my_time=strtol(pos,&pos,10);
+ strtol(pos,&pos,10); // my_time=strtol(pos,&pos,10);
if(pos==NULL)
{
free(buffer);