From 699e58a43daf7f0f85440879f225c12eb43c878c Mon Sep 17 00:00:00 2001 From: ticktock35 Date: Mon, 15 Dec 2008 05:27:58 +0000 Subject: [PATCH] [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 --- libopkg/libopkg.c | 4 ++-- libopkg/opkg.c | 2 +- libopkg/opkg_cmd.c | 4 ++-- libopkg/pkg.c | 3 ++- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/libopkg/libopkg.c b/libopkg/libopkg.c index d4910de..552ee20 100644 --- a/libopkg/libopkg.c +++ b/libopkg/libopkg.c @@ -38,7 +38,7 @@ int default_opkg_message_callback(opkg_conf_t *conf, message_level_t level, if ( level == OPKG_ERROR ){ push_error_list(&error_list, msg); } else - printf(msg); + printf("%s",msg); } return 0; } @@ -71,7 +71,7 @@ int default_opkg_status_callback(char *name, int istatus, char *desc, char* default_opkg_response_callback(char *question) { char *response = NULL; - printf(question); + printf("%s",question); fflush(stdout); do { response = (char *)file_read_line_alloc(stdin); diff --git a/libopkg/opkg.c b/libopkg/opkg.c index fabd520..4123611 100644 --- a/libopkg/opkg.c +++ b/libopkg/opkg.c @@ -873,7 +873,7 @@ opkg_update_package_lists (opkg_t *opkg, opkg_progress_callback_t progress_callb free (list_file_name); free (url); #else - /* XXX: Note: Signiture check for %s skipped because GPG support was not + /* XXX: Note: Signature check for %s skipped because GPG support was not * enabled in this build */ #endif diff --git a/libopkg/opkg_cmd.c b/libopkg/opkg_cmd.c index 2fe74e9..8386fce 100644 --- a/libopkg/opkg_cmd.c +++ b/libopkg/opkg_cmd.c @@ -288,7 +288,7 @@ static int opkg_update_cmd(opkg_conf_t *conf, int argc, char **argv) free (tmp_file_name); free (url); #else - opkg_message (conf, OPKG_NOTICE, "Signiture check for %s skipped " + opkg_message (conf, OPKG_NOTICE, "Signature check for %s skipped " "because GPG support was not enabled in this build\n", src->name); #endif free(list_file_name); @@ -380,7 +380,7 @@ static int opkg_finalize_intercepts(opkg_intercept_t ctx) perror (ctx->statedir); sprintf_alloc (&cmd, "rm -rf %s", ctx->statedir); - system (cmd); + err = system (cmd); free (cmd); free (ctx->statedir); 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); } -- 2.25.1