[opkg] fixing typo & incompatible part to gcc 4.3.2
authorticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Mon, 15 Dec 2008 05:27:58 +0000 (05:27 +0000)
committerticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Mon, 15 Dec 2008 05:27:58 +0000 (05:27 +0000)
git-svn-id: http://opkg.googlecode.com/svn/trunk@150 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

libopkg/libopkg.c
libopkg/opkg.c
libopkg/opkg_cmd.c
libopkg/pkg.c

index d4910deca1337a28658675ac3cb3a12b86981d9f..552ee20eb3400e6d2be54bf1e5eecd61a43bf9e2 100644 (file)
@@ -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
           if ( level == OPKG_ERROR ){
              push_error_list(&error_list, msg); 
           } else
-            printf(msg);
+           printf("%s",msg);
      }
      return 0;
 }
      }
      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;
 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);
      fflush(stdout);
      do {
          response = (char *)file_read_line_alloc(stdin);
index fabd520c781cef19afbf6cf183741818d3e59f5f..4123611f1bfbb98987a3cbc6814bfbddbe441edf 100644 (file)
@@ -873,7 +873,7 @@ opkg_update_package_lists (opkg_t *opkg, opkg_progress_callback_t progress_callb
     free (list_file_name);
     free (url);
 #else
     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
      * enabled in this build
      */
 #endif
index 2fe74e9d1394ea17b9a7394b6131651cbe301cec..8386fcea50091136b7a9818f8736952162b35b90 100644 (file)
@@ -288,7 +288,7 @@ static int opkg_update_cmd(opkg_conf_t *conf, int argc, char **argv)
          free (tmp_file_name);
          free (url);
 #else
          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);
               "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);
        perror (ctx->statedir);
        
     sprintf_alloc (&cmd, "rm -rf %s", ctx->statedir);
-    system (cmd);
+    err = system (cmd);
     free (cmd);
 
     free (ctx->statedir);
     free (cmd);
 
     free (ctx->statedir);
index d662664a362b119424aafe9fd6a4459b6e2ddda8..d9e478db664186c913089ffa3496e13c7ce175a1 100644 (file)
@@ -1052,6 +1052,7 @@ char * pkg_formatted_field(pkg_t *pkg, const char *field )
 
 void pkg_print_info(pkg_t *pkg, FILE *file)
 {
 
 void pkg_print_info(pkg_t *pkg, FILE *file)
 {
+  int t=0;
      char * buff;
      if (pkg == NULL) {
        return;
      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){
      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);
 }
      } 
      free(buff);
 }