From 185f812c419f1b4f0d10d9787d59cf9f11a2a600 Mon Sep 17 00:00:00 2001 From: Heinrich Schuchardt Date: Wed, 19 Jan 2022 18:05:50 +0100 Subject: doc: replace @return by Return: Sphinx expects Return: and not @return to indicate a return value. find . -name '*.c' -exec \ sed -i 's/^\(\s\)\*\(\s*\)@return\(\s\)/\1*\2Return:\3/' {} \; find . -name '*.h' -exec \ sed -i 's/^\(\s\)\*\(\s*\)@return\(\s\)/\1*\2Return:\3/' {} \; Signed-off-by: Heinrich Schuchardt --- cmd/gpt.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'cmd/gpt.c') diff --git a/cmd/gpt.c b/cmd/gpt.c index f818fbb71fc..1c0525fbf62 100644 --- a/cmd/gpt.c +++ b/cmd/gpt.c @@ -38,7 +38,7 @@ static LIST_HEAD(disk_partitions); * @param str - pointer to string * @param env - pointer to pointer to extracted env * - * @return - zero on successful expand and env is set + * Return: - zero on successful expand and env is set */ static int extract_env(const char *str, char **env) { @@ -97,7 +97,7 @@ static int extract_env(const char *str, char **env) * @param str - pointer to string with key=values pairs * @param key - pointer to the key to search for * - * @return - pointer to allocated string with the value + * Return: - pointer to allocated string with the value */ static char *extract_val(const char *str, const char *key) { @@ -134,7 +134,7 @@ static char *extract_val(const char *str, const char *key) * @param str - pointer to string with key * @param key - pointer to the key to search for * - * @return - true on found key + * Return: - true on found key */ static bool found_key(const char *str, const char *key) { @@ -403,7 +403,7 @@ static int do_get_gpt_info(struct blk_desc *dev_desc, char * const namestr) * @param partitions - pointer to pointer to allocated partitions array * @param parts_count - number of partitions * - * @return - zero on success, otherwise error + * Return: - zero on success, otherwise error * */ static int set_gpt_info(struct blk_desc *dev_desc, @@ -969,7 +969,7 @@ static int do_rename_gpt_parts(struct blk_desc *dev_desc, char *subcomm, * @param argc * @param argv * - * @return zero on success; otherwise error + * Return: zero on success; otherwise error */ static int do_gpt(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) { -- cgit v1.2.3