From 699e58a43daf7f0f85440879f225c12eb43c878c Mon Sep 17 00:00:00 2001 From: ticktock35 Date: Mon, 15 Dec 2008 00:27:58 -0500 Subject: [opkg] fixing typo & incompatible part to gcc 4.3.2 git-svn-id: http://opkg.googlecode.com/svn/trunk@150 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- (limited to 'libopkg/pkg.c') diff --git a/libopkg/pkg.c b/libopkg/pkg.c index d662664..d9e478d 100644 --- a/libopkg/pkg.c +++ b/libopkg/pkg.c @@ -1052,6 +1052,7 @@ char * pkg_formatted_field(pkg_t *pkg, const char *field ) void pkg_print_info(pkg_t *pkg, FILE *file) { + int t=0; char * buff; if (pkg == NULL) { return; @@ -1061,7 +1062,7 @@ void pkg_print_info(pkg_t *pkg, FILE *file) if ( buff == NULL ) return; if (strlen(buff)>2){ - fwrite(buff, 1, strlen(buff), file); + t = fwrite(buff, 1, strlen(buff), file); //#~rzr:TODO } free(buff); } -- cgit v0.9.1