summaryrefslogtreecommitdiffstats
path: root/libopkg
diff options
context:
space:
mode:
authorticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2008-12-15 00:27:58 (EST)
committer ticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2008-12-15 00:27:58 (EST)
commit699e58a43daf7f0f85440879f225c12eb43c878c (patch)
tree905deed654a4903416d253bef5cf5c6e589dfc5f /libopkg
parent69b2e9b983b00a1815fc28c7853c42371a1545e5 (diff)
[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
Diffstat (limited to 'libopkg')
-rw-r--r--libopkg/libopkg.c4
-rw-r--r--libopkg/opkg.c2
-rw-r--r--libopkg/opkg_cmd.c4
-rw-r--r--libopkg/pkg.c3
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);
}