Skip to content

Fix extra member in xlators/features/changelog/src/changelog-rpc.c #4492

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: devel
Choose a base branch
from

Conversation

ThalesBarretto
Copy link
Contributor

The "static struct rpcsvc_program *changelog_programs[]"
includes an extra member by introducing a stray comma after "NULL".

This commit fixes that by removing the stray comma.

@gluster-ant
Copy link
Collaborator

Can one of the admins verify this patch?

1 similar comment
@gluster-ant
Copy link
Collaborator

Can one of the admins verify this patch?

@gluster-ant
Copy link
Collaborator

CLANG-FORMAT FAILURE:
Before merging the patch, this diff needs to be considered for passing clang-format

index 39fa0b6ca..e524cd46a 100644
--- a/xlators/features/changelog/src/changelog-rpc.c
+++ b/xlators/features/changelog/src/changelog-rpc.c
@@ -435,7 +435,5 @@ static struct rpcsvc_program changelog_svc_prog = {
     .synctask = _gf_true,
 };
 
-static struct rpcsvc_program *changelog_programs[] = {
-    &changelog_svc_prog,
-    NULL
-};
+static struct rpcsvc_program *changelog_programs[] = {&changelog_svc_prog,
+                                                      NULL};

	The "static struct rpcsvc_program *changelog_programs[]"
includes an extra member by introducing a stray comma after "NULL".

	This commit fixes that by removing the stray comma.

Signed-off-by: Thales Antunes de Oliveira Barretto <[email protected]>
@ThalesBarretto ThalesBarretto marked this pull request as ready for review March 11, 2025 02:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants