diff options
author | Noriko Hosoi <nhosoi@redhat.com> | 2007-10-18 00:08:38 +0000 |
---|---|---|
committer | Noriko Hosoi <nhosoi@redhat.com> | 2007-10-18 00:08:38 +0000 |
commit | 19cd513a509aa6e45361df774e74f2d39451e08a (patch) | |
tree | 13ad0e58a486afd842559e1d74d019190c3f1d79 /ldap/servers/slapd/uuid.c | |
parent | 878c163528ed089dae1edb8295a6dd4ae842b9b4 (diff) | |
download | ds-19cd513a509aa6e45361df774e74f2d39451e08a.tar.gz ds-19cd513a509aa6e45361df774e74f2d39451e08a.tar.xz ds-19cd513a509aa6e45361df774e74f2d39451e08a.zip |
Resolves: #188320
Summary: HP-UX: warnings reported by the HP-UX compiler
Diffstat (limited to 'ldap/servers/slapd/uuid.c')
-rw-r--r-- | ldap/servers/slapd/uuid.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ldap/servers/slapd/uuid.c b/ldap/servers/slapd/uuid.c index 2bc3c701..92e22f42 100644 --- a/ldap/servers/slapd/uuid.c +++ b/ldap/servers/slapd/uuid.c @@ -291,7 +291,7 @@ int uuid_compare(const guid_t *u1, const guid_t *u2) void uuid_format(const guid_t *u, char *buff) { - sprintf(buff, "%8.8lx-%4.4x-%4.4x-%2.2x%2.2x-%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x", + sprintf(buff, "%8.8x-%4.4x-%4.4x-%2.2x%2.2x-%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x", u->time_low, u->time_mid, u->time_hi_and_version, u->clock_seq_hi_and_reserved, u->clock_seq_low, u->node[0], u->node[1], u->node[2], u->node[3], u->node[4], u->node[5]); @@ -368,7 +368,7 @@ static int uuid_create_mt(guid_t *uuid) time calls are made by a uuid_update_state */ update_time_mt (×tamp, &clock_seq); - if (timestamp == NEED_TIME_UPDATE) + if (timestamp == (uuid_time_t)NEED_TIME_UPDATE) { slapi_log_error (SLAPI_LOG_FATAL, MODULE, "uuid_create_mt: generator ran " "out of sequence numbers.\n"); |