1
0
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:
Micah Saint Germain 2014-12-14 21:01:22 -05:00 committed by Allan McRae
parent c54af84180
commit a4b23417f9
4 changed files with 8 additions and 8 deletions

View File

@ -28,7 +28,7 @@
void cb_event(alpm_event_t *event);
/* 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 */
void cb_progress(alpm_progress_t event, const char *pkgname, int percent,

View File

@ -97,11 +97,11 @@ static void usage(int op, const char * const myname)
alpm_list_t *list = NULL, *i;
/* prefetch some strings for usage below, which moves a lot of calls
* out of gettext. */
char const * const str_opt = _("options");
char const * const str_file = _("file(s)");
char const * const str_pkg = _("package(s)");
char const * const str_usg = _("usage");
char const * const str_opr = _("operation");
char const *const str_opt = _("options");
char const *const str_file = _("file(s)");
char const *const str_pkg = _("package(s)");
char const *const str_usg = _("usage");
char const *const str_opr = _("operation");
/* please limit your strings to 80 characters in width */
if(op == PM_OP_MAIN) {

View File

@ -230,7 +230,7 @@ static int sync_cleancache(int level)
}
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 */
"*.sig",
/* skip package database within the cache directory */

View File

@ -339,7 +339,7 @@ static void cleanup(void)
static void print_text(const char *pkg, const char *provision,
tdepth *depth, int last)
{
const char* tip = "";
const char *tip = "";
int level = 1;
if(!pkg && !provision) {
/* not much we can do */