Skip to content

Commit

Permalink
Code formatting fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
janowagner committed Sep 26, 2019
1 parent ca4f4c8 commit dc77e67
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/manage_sql_nvts.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ nvts_feed_version_epoch ()
struct tm tm;

memset (&tm, 0, sizeof (struct tm));
strptime (nvts_feed_version(), "%Y%m%d%H%M%S", &tm);
strptime (nvts_feed_version (), "%Y%m%d%H%M%S", &tm);
return mktime (&tm);
}

Expand Down Expand Up @@ -1298,10 +1298,12 @@ update_nvts_from_vts (entity_t *get_vts_response,
entity_t vts, vt;
entities_t children;
GList *preferences;
int count_modified_vts = 0;
int count_new_vts = 0;
int count_modified_vts, count_new_vts;
time_t feed_version_epoch;

count_modified_vts = 0;
count_new_vts = 0;

feed_version_epoch = nvts_feed_version_epoch();

vts = entity_child (*get_vts_response, "vts");
Expand Down

0 comments on commit dc77e67

Please sign in to comment.