break;
default:
printf("- Being ignored (3 or more changes).\n");
+ break;
}
}
else
int i = 0;
int f_found = 0;
- /* Current time. */
- time_t c_time;
-
- /* Time from the message. */
+ /* Time from the message. */
time_t s_time = 0;
time_t i_time = 0;
struct tm *tm_time;
read_day[24] = '\0';
- c_time = time(0);
fseek(fp, 0, SEEK_SET);
{
char *ossec_version = NULL;
agt_info->os = getuname();
- os_strdup(__name " " __version, agt_info->version);
+ os_strdup(__ossec_name " " __version, agt_info->version);
/* Removing new line. */
*/
agent_info *get_agent_info(char *agent_name, char *agent_ip)
{
- char tmp_file[513];
char *agent_ip_pt = NULL;
char *tmp_str = NULL;
agent_info *agt_info = NULL;
- tmp_file[512] = '\0';
-
-
/* Removing the "/", since it is not present on the file. */
if((agent_ip_pt = strchr(agent_ip, '/')))
{