mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-22 15:58:50 -05:00
Fix pointer declarations to be globally consistent
Refactored inconsistent pointer declarations to better improve consistency throughout the pacman codebase which will, in turn, increase readability to the user. Expected format of a pointer declaration: `typename *varname` Signed-off-by: Micah Saint Germain <micah@lexme.org> Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
c54af84180
commit
a4b23417f9
@ -28,7 +28,7 @@
|
|||||||
void cb_event(alpm_event_t *event);
|
void cb_event(alpm_event_t *event);
|
||||||
|
|
||||||
/* callback to handle questions from libalpm (yes/no) */
|
/* callback to handle questions from libalpm (yes/no) */
|
||||||
void cb_question(alpm_question_t* question);
|
void cb_question(alpm_question_t *question);
|
||||||
|
|
||||||
/* callback to handle display of progress */
|
/* callback to handle display of progress */
|
||||||
void cb_progress(alpm_progress_t event, const char *pkgname, int percent,
|
void cb_progress(alpm_progress_t event, const char *pkgname, int percent,
|
||||||
|
@ -97,11 +97,11 @@ static void usage(int op, const char * const myname)
|
|||||||
alpm_list_t *list = NULL, *i;
|
alpm_list_t *list = NULL, *i;
|
||||||
/* prefetch some strings for usage below, which moves a lot of calls
|
/* prefetch some strings for usage below, which moves a lot of calls
|
||||||
* out of gettext. */
|
* out of gettext. */
|
||||||
char const * const str_opt = _("options");
|
char const *const str_opt = _("options");
|
||||||
char const * const str_file = _("file(s)");
|
char const *const str_file = _("file(s)");
|
||||||
char const * const str_pkg = _("package(s)");
|
char const *const str_pkg = _("package(s)");
|
||||||
char const * const str_usg = _("usage");
|
char const *const str_usg = _("usage");
|
||||||
char const * const str_opr = _("operation");
|
char const *const str_opr = _("operation");
|
||||||
|
|
||||||
/* please limit your strings to 80 characters in width */
|
/* please limit your strings to 80 characters in width */
|
||||||
if(op == PM_OP_MAIN) {
|
if(op == PM_OP_MAIN) {
|
||||||
|
@ -230,7 +230,7 @@ static int sync_cleancache(int level)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(level <= 1) {
|
if(level <= 1) {
|
||||||
static const char * const glob_skips[] = {
|
static const char *const glob_skips[] = {
|
||||||
/* skip signature files - they are removed with their package file */
|
/* skip signature files - they are removed with their package file */
|
||||||
"*.sig",
|
"*.sig",
|
||||||
/* skip package database within the cache directory */
|
/* skip package database within the cache directory */
|
||||||
|
@ -339,7 +339,7 @@ static void cleanup(void)
|
|||||||
static void print_text(const char *pkg, const char *provision,
|
static void print_text(const char *pkg, const char *provision,
|
||||||
tdepth *depth, int last)
|
tdepth *depth, int last)
|
||||||
{
|
{
|
||||||
const char* tip = "";
|
const char *tip = "";
|
||||||
int level = 1;
|
int level = 1;
|
||||||
if(!pkg && !provision) {
|
if(!pkg && !provision) {
|
||||||
/* not much we can do */
|
/* not much we can do */
|
||||||
|
Loading…
Reference in New Issue
Block a user