r4671 - trunk/src/target/opkg/libopkg

tick at docs.openmoko.org tick at docs.openmoko.org
Thu Sep 25 06:59:34 CEST 2008


Author: tick
Date: 2008-09-25 06:59:33 +0200 (Thu, 25 Sep 2008)
New Revision: 4671

Modified:
   trunk/src/target/opkg/libopkg/libopkg.c
   trunk/src/target/opkg/libopkg/opkg.c
   trunk/src/target/opkg/libopkg/opkg_cmd.c
   trunk/src/target/opkg/libopkg/pkg.c
Log:
[opkg] fixing typo & incompatible part to gcc 4.3.2


Modified: trunk/src/target/opkg/libopkg/libopkg.c
===================================================================
--- trunk/src/target/opkg/libopkg/libopkg.c	2008-09-25 04:06:22 UTC (rev 4670)
+++ trunk/src/target/opkg/libopkg/libopkg.c	2008-09-25 04:59:33 UTC (rev 4671)
@@ -38,7 +38,7 @@
           if ( level == OPKG_ERROR ){
              push_error_list(&error_list, msg); 
           } else
-	     printf(msg);
+	    printf("%s",msg);
      }
      return 0;
 }
@@ -71,7 +71,7 @@
 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);

Modified: trunk/src/target/opkg/libopkg/opkg.c
===================================================================
--- trunk/src/target/opkg/libopkg/opkg.c	2008-09-25 04:06:22 UTC (rev 4670)
+++ trunk/src/target/opkg/libopkg/opkg.c	2008-09-25 04:59:33 UTC (rev 4671)
@@ -873,7 +873,7 @@
     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

Modified: trunk/src/target/opkg/libopkg/opkg_cmd.c
===================================================================
--- trunk/src/target/opkg/libopkg/opkg_cmd.c	2008-09-25 04:06:22 UTC (rev 4670)
+++ trunk/src/target/opkg/libopkg/opkg_cmd.c	2008-09-25 04:59:33 UTC (rev 4671)
@@ -288,7 +288,7 @@
 	  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 @@
 	perror (ctx->statedir);
 	
     sprintf_alloc (&cmd, "rm -rf %s", ctx->statedir);
-    system (cmd);
+    err = system (cmd);
     free (cmd);
 
     free (ctx->statedir);

Modified: trunk/src/target/opkg/libopkg/pkg.c
===================================================================
--- trunk/src/target/opkg/libopkg/pkg.c	2008-09-25 04:06:22 UTC (rev 4670)
+++ trunk/src/target/opkg/libopkg/pkg.c	2008-09-25 04:59:33 UTC (rev 4671)
@@ -1052,6 +1052,7 @@
 
 void pkg_print_info(pkg_t *pkg, FILE *file)
 {
+  int t=0;
      char * buff;
      if (pkg == NULL) {
 	return;
@@ -1061,7 +1062,7 @@
      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);
 }




More information about the commitlog mailing list