[hipl-commit] [trunk] Rev 4630: lib: fix a signed/unsigned comparison issue.

  • From: Mircea Gherzan <mircea.gherzan@xxxxxxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Sun, 30 May 2010 20:09:07 +0300

Committer: Mircea Gherzan <mircea.gherzan@xxxxxxxxxxxxxx>
Date: 30/05/2010 at 20:09:07
Revision: 4630
Revision-id: mircea.gherzan@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: trunk

Log:
  lib: fix a signed/unsigned comparison issue.

Modified:
  M  lib/core/builder.c

=== modified file 'lib/core/builder.c'
--- lib/core/builder.c  2010-05-30 17:04:14 +0000
+++ lib/core/builder.c  2010-05-30 17:08:32 +0000
@@ -2253,7 +2253,8 @@
                              const void *srv_list,
                              const unsigned int service_count)
 {
-    int err                            = 0, i = 0;
+    int err    = 0;
+    unsigned i = 0;
     const struct hip_srv *service_list = (const struct hip_srv *) srv_list;
     struct hip_reg_info reg_info;
     uint8_t reg_type[service_count];

Other related posts:

  • » [hipl-commit] [trunk] Rev 4630: lib: fix a signed/unsigned comparison issue. - Mircea Gherzan