[pacman-dev] [PATCH 5/6] Update utilities for new initialize/release methods

Dan McGee dpmcgee at gmail.com
Tue Jun 7 10:02:13 EDT 2011


On Fri, Jun 3, 2011 at 6:05 PM, Allan McRae <allan at archlinux.org> wrote:
> On 04/06/11 08:41, Dan McGee wrote:
>>
>> Signed-off-by: Dan McGee<dan at archlinux.org>
>> ---
>>  src/util/cleanupdelta.c |   14 ++++++++------
>>  src/util/pactree.c      |   23 +++++++----------------
>>  src/util/testdb.c       |   17 ++++++++---------
>>  src/util/testpkg.c      |   11 +++++++----
>>  4 files changed, 30 insertions(+), 35 deletions(-)
>>
> <snip>
>>
>> diff --git a/src/util/pactree.c b/src/util/pactree.c
>> index e9a2816..23e0562 100644
>> --- a/src/util/pactree.c
>> +++ b/src/util/pactree.c
>> @@ -74,6 +74,7 @@ static struct color_choices no_color = {
>>  };
>>
>>  /* globals */
>> +pmhandle_t *handle = NULL;
>>  pmdb_t *db_local;
>>  alpm_list_t *walked = NULL;
>>  alpm_list_t *provisions = NULL;
>> @@ -87,23 +88,13 @@ int reverse = 0;
>>  int unique = 0;
>>  const char *dbpath = DBPATH;
>>
>> -static int alpm_local_init(void)
>> +static int alpm_local_init()
>
>
> pactree.c:91:12: error: function declaration isn’t a prototype
> [-Werror=strict-prototypes]

Fail on my part after some numerous refactoring passes, whoops. I'll
fix this up, thanks for noticing!

-Dan


More information about the pacman-dev mailing list