Skip to content

Commit d07b0b9

Browse files
committed
files_editline.c: removed trailing whitespace
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech> (cherry picked from commit 3615ade)
1 parent 1e13384 commit d07b0b9

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

cf-agent/files_editline.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1715,11 +1715,11 @@ static bool MatchPolicy(EvalContext *ctx, const char *camel, const char *haystac
17151715
char *work = xcalloc(1, work_size);
17161716
strcpy(work, sp);
17171717

1718-
int written = snprintf(final, final_size, "\\s*%s",
1718+
int written = snprintf(final, final_size, "\\s*%s",
17191719
work);
17201720
if (written < 0)
17211721
{
1722-
Log(LOG_LEVEL_ERR,
1722+
Log(LOG_LEVEL_ERR,
17231723
"Unexpected failure from snprintf "
17241724
"(%d - %s) on '%s' (MatchPolicy)",
17251725
errno, GetErrorStr(), final);
@@ -1729,13 +1729,13 @@ static bool MatchPolicy(EvalContext *ctx, const char *camel, const char *haystac
17291729
{
17301730
final = xrealloc(final, work_size);
17311731
final_size = work_size;
1732-
written = snprintf(final, final_size, "\\s*%s",
1732+
written = snprintf(final, final_size, "\\s*%s",
17331733
work);
17341734
if (written < 0)
17351735
{
1736-
Log(LOG_LEVEL_ERR,
1736+
Log(LOG_LEVEL_ERR,
17371737
"Unexpected failure from snprintf "
1738-
"(%d - %s) on '%s' (MatchPolicy)",
1738+
"(%d - %s) on '%s' (MatchPolicy)",
17391739
errno, GetErrorStr(), final);
17401740
return false;
17411741
}
@@ -1758,9 +1758,9 @@ static bool MatchPolicy(EvalContext *ctx, const char *camel, const char *haystac
17581758
int written = snprintf(final, final_size, "%s\\s*", work);
17591759
if (written < 0)
17601760
{
1761-
Log(LOG_LEVEL_ERR,
1761+
Log(LOG_LEVEL_ERR,
17621762
"Unexpected failure from snprintf "
1763-
"(%d - %s) on '%s' (MatchPolicy)",
1763+
"(%d - %s) on '%s' (MatchPolicy)",
17641764
errno, GetErrorStr(), final);
17651765
return false;
17661766
}
@@ -1771,9 +1771,9 @@ static bool MatchPolicy(EvalContext *ctx, const char *camel, const char *haystac
17711771
written = snprintf(final, final_size, "%s\\s*", work);
17721772
if (written < 0)
17731773
{
1774-
Log(LOG_LEVEL_ERR,
1774+
Log(LOG_LEVEL_ERR,
17751775
"Unexpected failure from snprintf "
1776-
"(%d - %s) on '%s' (MatchPolicy)",
1776+
"(%d - %s) on '%s' (MatchPolicy)",
17771777
errno, GetErrorStr(), final);
17781778
return false;
17791779
}

0 commit comments

Comments
 (0)