Skip to content

Commit 240dc81

Browse files
committed
style(mcp): keep the upstream pointer-to-array declaration spacing
The local clang-format 15 that produced the previous commit removes the space in 'char (*mods)[CBM_SZ_128]' (pointer-to-array declaration), while the CI formatter keeps it; 15 also rewrote those two pre-existing detect_changes lines even though they were untouched by this PR. Restore the upstream spelling so the CI format gate passes and the PR diff no longer touches lines it has no reason to touch. Signed-off-by: 周文瑄 <zhouwx1997@126.com>
1 parent 2d8721a commit 240dc81

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/mcp/mcp.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12034,7 +12034,7 @@ static char *handle_detect_changes(cbm_mcp_server_t *srv, const char *args) {
1203412034
/* module rollup: a quotient view of the blast radius */
1203512035
if (impact.visited_count > 0) {
1203612036
cbm_sb_append(&sb, "impacted_modules: (rows: module count)\n");
12037-
char(*mods)[CBM_SZ_128] = malloc(DETECT_MODCAP * CBM_SZ_128);
12037+
char (*mods)[CBM_SZ_128] = malloc(DETECT_MODCAP * CBM_SZ_128);
1203812038
int *mcnt = malloc(DETECT_MODCAP * sizeof(int));
1203912039
if (mods && mcnt) {
1204012040
int overflow = 0;
@@ -12097,7 +12097,7 @@ static char *handle_detect_changes(cbm_mcp_server_t *srv, const char *args) {
1209712097
yyjson_mut_obj_add_val(doc, root_obj, "impacted", imp);
1209812098
/* Model parity with the tree encoding: the complete module rollup. */
1209912099
if (impact.visited_count > 0) {
12100-
char(*mods)[CBM_SZ_128] = malloc(DETECT_MODCAP * CBM_SZ_128);
12100+
char (*mods)[CBM_SZ_128] = malloc(DETECT_MODCAP * CBM_SZ_128);
1210112101
int *mcnt = malloc(DETECT_MODCAP * sizeof(int));
1210212102
if (mods && mcnt) {
1210312103
int overflow = 0;

0 commit comments

Comments
 (0)