diff options
author | ticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2008-12-15 00:12:49 (EST) |
---|---|---|
committer | ticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2008-12-15 00:12:49 (EST) |
commit | 4b1f75293bdff6372cf3e390d7875fd66c8afc01 (patch) | |
tree | e93bb48af65108651bcbb53e5c08c5c66a4540a1 /libopkg | |
parent | d0de5e2ecd8ea32731c56350925640f11f177ac8 (diff) |
opkg: minor white space and indent fixes
git-svn-id: http://opkg.googlecode.com/svn/trunk@88 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
Diffstat (limited to 'libopkg')
-rw-r--r-- | libopkg/opkg.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/libopkg/opkg.c b/libopkg/opkg.c index e72693c..30bde2e 100644 --- a/libopkg/opkg.c +++ b/libopkg/opkg.c @@ -40,8 +40,8 @@ struct _opkg_t }; #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 @@ struct _curl_cb_data 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 @@ curl_progress_cb (struct _curl_cb_data *cb_data, 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; } |