Skip to content

Commit

Permalink
Fix indentation
Browse files Browse the repository at this point in the history
This indentation looks clearer to me.
  • Loading branch information
sthibaul committed Jun 16, 2024
1 parent c64a9cd commit cce714c
Showing 1 changed file with 16 additions and 17 deletions.
33 changes: 16 additions & 17 deletions src/modules/module_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -303,23 +303,22 @@ module_get_message_part(const char *message, char *part, unsigned int *pos,
return i + 1;
}
}
if ((message[*pos] == '\n')
&& (message[*pos + 1] == '\n')) {
part[i + 1] = 0;
(*pos)++;
return i + 1;
}
if ((len - 1 - i) > 4) {
if (((message[*pos] == '\r')
&& (message[*pos + 1] == '\n'))
&& ((message[*pos + 2] == '\r')
&& (message[*pos + 3] ==
'\n'))) {
part[i + 1] = 0;
(*pos)++;
return i + 1;
}
}
}
if ((message[*pos] == '\n')
&& (message[*pos + 1] == '\n')) {
part[i + 1] = 0;
(*pos)++;
return i + 1;
}
}
if ((len - 1 - i) > 4) {
if ( (message[*pos] == '\r')
&& (message[*pos + 1] == '\n')
&& (message[*pos + 2] == '\r')
&& (message[*pos + 3] == '\n')) {
part[i + 1] = 0;
(*pos)++;
return i + 1;
}
}

Expand Down

0 comments on commit cce714c

Please sign in to comment.