Check-in Number:
|
4596 | |
Date: |
2004-Jun-09 21:17:39 (local)
2004-Jun-09 19:17:39 (UTC) |
User: | rse |
Branch: | |
Comment: |
Remove some warnings occurring under GCC 3.5 |
Tickets: |
|
Inspections: |
|
Files: |
|
ossp-pkg/uuid/ChangeLog 1.47 -> 1.48
--- ChangeLog 2004/02/17 09:23:06 1.47
+++ ChangeLog 2004/06/09 19:17:39 1.48
@@ -11,6 +11,11 @@
This is a list of all changes to OSSP uuid.
For a more brief summary please have a look at the NEWS file.
+ Changes between 1.0.0 and 1.0.1 (16-Feb-2004 to xx-Jun-2004)
+
+ o Remove some warnings occurring under GCC 3.5
+ [Ralf S. Engelschall]
+
Changes between 0.9.7 and 1.0.0 (13-Feb-2004 to 16-Feb-2004)
o Replace remaining (old) UUID_VERSIONX names with UUID_MAKE_VX
|
|
ossp-pkg/uuid/uuid.c 1.47 -> 1.48
--- uuid.c 2004/02/17 09:23:06 1.47
+++ uuid.c 2004/06/09 19:17:39 1.48
@@ -472,7 +472,7 @@
time_t t_sec;
char t_buf[19+1]; /* YYYY-MM-DD HH:MM:SS */
struct tm *tm;
- unsigned int i;
+ int i;
/* sanity check argument(s) */
if (uuid == NULL || data_ptr == NULL)
@@ -505,7 +505,7 @@
break;
}
}
- for (i = 0; i < sizeof(uuid_dectab_variant)/sizeof(uuid_dectab_variant[0]); i++) {
+ for (i = 0; i < (int)(sizeof(uuid_dectab_variant)/sizeof(uuid_dectab_variant[0])); i++) {
if (uuid_dectab_variant[i].num == tmp8) {
variant = uuid_dectab_variant[i].desc;
break;
@@ -520,7 +520,7 @@
version = "n.a.";
else {
version = "unknown";
- for (i = 0; i < sizeof(uuid_dectab_version)/sizeof(uuid_dectab_version[0]); i++) {
+ for (i = 0; i < (int)(sizeof(uuid_dectab_version)/sizeof(uuid_dectab_version[0])); i++) {
if (uuid_dectab_version[i].num == (int)tmp16) {
version = uuid_dectab_version[i].desc;
break;
|
|