Skip to content

Commit

Permalink
Fix -Wmisleading-indentation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
milabs committed Jan 14, 2021
1 parent dd6428e commit e630993
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ static void dts_process(struct dts_pernet *dts, struct dts_data *d)
char *p = d->data;
struct dts_inet src, dst;

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wmisleading-indentation"
while (*p && p < d->data + d->len) {
while (*p && isspace(*p)) p++; if (!*p) return; // skip spaces
src.p = p;
Expand All @@ -119,6 +121,7 @@ static void dts_process(struct dts_pernet *dts, struct dts_data *d)

dts_kill(dts->net, &src, &dst), p++;
}
#pragma GCC diagnostic pop
}

static int dts_proc_open(struct inode *inode, struct file *file)
Expand Down

0 comments on commit e630993

Please sign in to comment.