Skip to content

Commit

Permalink
uncrustify: add trailing comma on last enum entry
Browse files Browse the repository at this point in the history
This makes it easier to read git blame and diffs when adding new items.

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
  • Loading branch information
jluebbe committed Apr 20, 2020
1 parent cf83db8 commit 05e0f7a
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .uncrustify.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ eat_blanks_after_open_brace = true
eat_blanks_before_close_brace = true
align_keep_tabs = true
mod_paren_on_return = remove
# option(s) with 'not default' value: 27
mod_enum_last_comma = add
# option(s) with 'not default' value: 28
#
2 changes: 1 addition & 1 deletion include/bundle.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ GQuark r_bundle_error_quark(void);
typedef enum {
R_BUNDLE_ERROR_SIGNATURE,
R_BUNDLE_ERROR_KEYRING,
R_BUNDLE_ERROR_IDENTIFIER
R_BUNDLE_ERROR_IDENTIFIER,
} RBundleError;

typedef struct {
Expand Down
6 changes: 3 additions & 3 deletions include/config_file.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ typedef enum {
R_CONFIG_ERROR_INVALID_FORMAT,
R_CONFIG_ERROR_BOOTLOADER,
R_CONFIG_ERROR_PARENT,
R_CONFIG_ERROR_MAX_BUNDLE_DOWNLOAD_SIZE
R_CONFIG_ERROR_MAX_BUNDLE_DOWNLOAD_SIZE,
} RConfigError;

#define R_CONFIG_ERROR r_config_error_quark()
Expand All @@ -23,7 +23,7 @@ typedef enum {
R_CONFIG_SYS_VARIANT_NONE,
R_CONFIG_SYS_VARIANT_DTB,
R_CONFIG_SYS_VARIANT_FILE,
R_CONFIG_SYS_VARIANT_NAME
R_CONFIG_SYS_VARIANT_NAME,
} RConfigSysVariant;

/* System configuration */
Expand Down Expand Up @@ -61,7 +61,7 @@ typedef enum {
R_SLOT_ERROR_NO_CONFIG,
R_SLOT_ERROR_NO_BOOTSLOT,
R_SLOT_ERROR_NO_SLOT_WITH_STATE_BOOTED,
R_SLOT_ERROR_FAILED
R_SLOT_ERROR_FAILED,
} RSlotError;

#define R_SLOT_ERROR r_slot_error_quark()
Expand Down
2 changes: 1 addition & 1 deletion include/install.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ typedef enum {
R_INSTALL_ERROR_DOWNLOAD_MF,
R_INSTALL_ERROR_HANDLER,
R_INSTALL_ERROR_NO_SUPPORTED,
R_INSTALL_ERROR_MOUNTED
R_INSTALL_ERROR_MOUNTED,
} RInstallError;

typedef struct {
Expand Down
2 changes: 1 addition & 1 deletion include/signature.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ typedef enum {
R_SIGNATURE_ERROR_X509_LOOKUP,
R_SIGNATURE_ERROR_CA_LOAD,
R_SIGNATURE_ERROR_PARSE,
R_SIGNATURE_ERROR_INVALID
R_SIGNATURE_ERROR_INVALID,
} RSignatureError;

/**
Expand Down
2 changes: 1 addition & 1 deletion include/update_handler.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ GQuark r_update_error_quark(void);

typedef enum {
R_UPDATE_ERROR_FAILED,
R_UPDATE_ERROR_NO_HANDLER
R_UPDATE_ERROR_NO_HANDLER,
} RUpdateError;

typedef gboolean (*img_to_slot_handler) (RaucImage *image, RaucSlot *dest_slot, const gchar *hook_name, GError **error);
Expand Down

0 comments on commit 05e0f7a

Please sign in to comment.