Skip to content

Commit

Permalink
Format with clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
y0urself committed Sep 2, 2021
1 parent de4b2f9 commit 4b00b77
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 14 deletions.
6 changes: 3 additions & 3 deletions nasl/md4.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,9 @@ mdfour64_ntlmssp (uint32 *M)
D &= 0xFFFFFFFF;

for (size_t i = 0; i < sizeof (X); i++)
{
*(volatile char *)(X + i) = '\0';
}
{
*(volatile char *) (X + i) = '\0';
}
}

static void
Expand Down
4 changes: 2 additions & 2 deletions nasl/nasl_isotime.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ epoch2isotime (my_isotime_t timebuf, time_t atime)

gmtime_r (&atime, &tp);
if (snprintf (timebuf, ISOTIME_SIZE, "%04d%02d%02dT%02d%02d%02d",
1900 + tp.tm_year, tp.tm_mon + 1, tp.tm_mday,
tp.tm_hour, tp.tm_min, tp.tm_sec)
1900 + tp.tm_year, tp.tm_mon + 1, tp.tm_mday, tp.tm_hour,
tp.tm_min, tp.tm_sec)
< 0)
{
*timebuf = '\0';
Expand Down
16 changes: 8 additions & 8 deletions nasl/nasl_misc_funcs.c
Original file line number Diff line number Diff line change
Expand Up @@ -687,19 +687,19 @@ nasl_localtime (lex_ctxt *lexic)

success = false;
if (utc)
{
if (gmtime_r (&tictac, &ptm) == NULL)
{
success = true;
if (gmtime_r (&tictac, &ptm) == NULL)
{
success = true;
}
}
}
else
{
if (localtime_r (&tictac, &ptm) == NULL)
{
success = true;
if (localtime_r (&tictac, &ptm) == NULL)
{
success = true;
}
}
}

if (!success)
{
Expand Down
3 changes: 2 additions & 1 deletion nasl/nasl_var.c
Original file line number Diff line number Diff line change
Expand Up @@ -876,7 +876,8 @@ get_variable_by_name (lex_ctxt *ctxt, const char *name)
ret->type = CONST_INT;
ret->x.i_val = v->v.v_int;
if (nasl_trace_enabled ())
nasl_trace (lexic, "NASL> %s -> %lu\n", get_var_name (v), ret->x.i_val);
nasl_trace (lexic, "NASL> %s -> %lu\n", get_var_name (v),
ret->x.i_val);
return ret;

case VAR2_STRING:
Expand Down

0 comments on commit 4b00b77

Please sign in to comment.