Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
print_info() should be void as it has nothing to return
Marin Atanasov Nikolov committed 14 years ago
commit f71d3b840a205a528a6ebb717d4f8d2001ad3cd1
parent 149d652
2 files changed +2 -4
modified pkg/pkgcli.h
@@ -146,7 +146,7 @@ void usage_which(void);
#define INFO_LIST_SHLIBS (1<<11)

bool query_yesno(const char *msg, ...);
-
int print_info(struct pkg * const pkg, unsigned int opt);
+
void print_info(struct pkg * const pkg, unsigned int opt);
char *absolutepath(const char *src, char *dest, size_t dest_len);
void print_jobs_summary(struct pkg_jobs *j, pkg_jobs_t type, const char *msg, ...);

modified pkg/utils.c
@@ -127,7 +127,7 @@ absolutepath(const char *src, char *dest, size_t dest_len) {
	return &dest[0];
}

-
int
+
void
print_info(struct pkg * const pkg, unsigned int opt)
{
	struct pkg_dep *dep = NULL;
@@ -283,8 +283,6 @@ print_info(struct pkg * const pkg, unsigned int opt)
				printf("%s-%s: %s\n", name, version, comment);
		}
        }
-

-
        return (0);
}

void