r4396 - trunk/src/target/opkg/libopkg

thomas at sita.openmoko.org thomas at sita.openmoko.org
Thu Apr 24 13:04:08 CEST 2008


Author: thomas
Date: 2008-04-24 13:04:07 +0200 (Thu, 24 Apr 2008)
New Revision: 4396

Modified:
   trunk/src/target/opkg/libopkg/opkg.c
Log:
opkg: minor white space and indent fixes


Modified: trunk/src/target/opkg/libopkg/opkg.c
===================================================================
--- trunk/src/target/opkg/libopkg/opkg.c	2008-04-24 11:03:31 UTC (rev 4395)
+++ trunk/src/target/opkg/libopkg/opkg.c	2008-04-24 11:04:07 UTC (rev 4396)
@@ -40,8 +40,8 @@
 };
 
 #define opkg_assert(expr) if (!(expr)) { \
-   printf ("opkg: file %s: line %d (%s): Assertation '%s' failed",\
-       __FILE__, __LINE__, __PRETTY_FUNCTION__, #expr); abort(); }
+    printf ("opkg: file %s: line %d (%s): Assertation '%s' failed",\
+            __FILE__, __LINE__, __PRETTY_FUNCTION__, # expr); abort (); }
 
 #define progress(percent) if (progress_callback) progress_callback (opkg, percent, user_data);
 
@@ -98,12 +98,12 @@
 
 int
 curl_progress_cb (struct _curl_cb_data *cb_data,
-		    double t, /* dltotal */
-		    double d, /* dlnow */
-		    double ultotal,
-		    double ulnow)
+                  double t,   /* dltotal */
+                  double d,   /* dlnow */
+                  double ultotal,
+                  double ulnow)
 {
-  int p = (t) ? d*100/t : 0;
+  int p = (t) ? d * 100 / t : 0;
   static int prev = -1;
 
   /* prevent the same value being sent twice (can occur due to rounding) */
@@ -114,9 +114,9 @@
   if (t < 1)
     return 0;
 
-  (cb_data->cb) (cb_data->opkg,
-      cb_data->start_range + (d/t * ((cb_data->finish_range - cb_data->start_range))),
-      cb_data->user_data);
+  (cb_data->cb)(cb_data->opkg,
+                cb_data->start_range + (d / t * ((cb_data->finish_range - cb_data->start_range))),
+                cb_data->user_data);
 
   return 0;
 }





More information about the commitlog mailing list