/**
* @file data.c
- * @purpose Implementation of data handling functions; saving, loading, displaying, selecting.
+ * @brief Implementation of data handling functions; saving, loading, displaying, selecting.
*/
#include "data.h"
void Data_Init(DataFile * df)
{
// Everything is NULL
- df->filename = NULL;
+ memset(df, 0, sizeof(DataFile));
pthread_mutex_init(&(df->mutex), NULL);
- df->file = NULL;
}
/**
*/
DataFormat Data_GetFormat(FCGIValue * fmt)
{
- char * fmt_str = *(char**)(fmt->value);
+ const char * fmt_str = *(const char**)(fmt->value);
// Check if format type was specified
if (FCGI_RECEIVED(fmt->flags))
{