Fixed compiler warnings.

Paul Honig [2014-07-30 16:56]
Fixed compiler warnings.
Filename
swarmtv/libswarmtv/databaseimpl.c
swarmtv/libswarmtv/stats.c
diff --git a/swarmtv/libswarmtv/databaseimpl.c b/swarmtv/libswarmtv/databaseimpl.c
index b3b021a..971c087 100644
--- a/swarmtv/libswarmtv/databaseimpl.c
+++ b/swarmtv/libswarmtv/databaseimpl.c
@@ -473,7 +473,7 @@ int rsstinitdatabase(const char *filename, rsstor_handle *handle)
   /*
    * Add regexp function.
    */
-  typedef struct sqlite3_value sqlite3_value;
+  //typedef struct sqlite3_value sqlite3_value;
   rc = sqlite3_create_function(
       db,
       "regexp",       // name of the function
diff --git a/swarmtv/libswarmtv/stats.c b/swarmtv/libswarmtv/stats.c
index d599ff0..9686291 100644
--- a/swarmtv/libswarmtv/stats.c
+++ b/swarmtv/libswarmtv/stats.c
@@ -351,7 +351,7 @@ int rsstgetstats(rsstor_handle *handle, stats_struct *stats)
   /*
    * initialize the structure
    */
-  memset(stats, 0, sizeof(stats));
+  memset(stats, 0, sizeof(*stats));

   /*
    * Fill the variables