Skip to content
Extraits de code Groupes Projets
Vérifiée Valider c42e1eff rédigé par Kubat's avatar Kubat
Parcourir les fichiers

Small renamings

parent 65d1432b
Branches
Aucune étiquette associée trouvée
1 requête de fusion!106Playlist to queue
...@@ -26,4 +26,4 @@ noreturn void lkt_cmd_parse(struct lkt_cmd_opt *opts, int argc, const char **arg ...@@ -26,4 +26,4 @@ noreturn void lkt_cmd_parse(struct lkt_cmd_opt *opts, int argc, const char **arg
in case of errors. */ in case of errors. */
extern const char *executable_name; extern const char *executable_name;
noreturn void help__(void); noreturn void print_help(void);
...@@ -23,7 +23,6 @@ struct poller_thread_arg { ...@@ -23,7 +23,6 @@ struct poller_thread_arg {
void *args; void *args;
}; };
/* Create a new thread. Returns 0 on success, a non zero value on error. */ /* Create a new thread. Returns 0 on success, a non zero value on error. */
int poller_new(struct poller_thread *th, void *(*func)(struct poller_thread_arg *), void *args); int poller_new(struct poller_thread *th, void *(*func)(struct poller_thread_arg *), void *args);
......
...@@ -13,7 +13,7 @@ const char *executable_name = NULL; ...@@ -13,7 +13,7 @@ const char *executable_name = NULL;
extern const char *man_executable_path; extern const char *man_executable_path;
noreturn void noreturn void
help__(void) print_help(void)
{ {
if (!executable_name) if (!executable_name)
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
...@@ -71,7 +71,7 @@ not_found: ...@@ -71,7 +71,7 @@ not_found:
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
help: help:
help__(); print_help();
not_exclusive: not_exclusive:
LOG_ERROR("COMMAND", "Failed to determine option, '%s' not exclusive", LOG_ERROR("COMMAND", "Failed to determine option, '%s' not exclusive",
......
...@@ -54,7 +54,7 @@ main(int argc, char *argv[]) ...@@ -54,7 +54,7 @@ main(int argc, char *argv[])
break; break;
case 'h': case 'h':
default: default:
help__(); print_help();
exit(EXIT_SUCCESS); exit(EXIT_SUCCESS);
} }
} }
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter