diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2010-10-27 09:47:07 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2010-10-27 09:47:07 +0000 |
commit | 92ea81543438aebee77ceec02800da3e4da6a421 (patch) | |
tree | 5f5075ae7e9cc68881fd94f7f98795b755fbd374 /src/fs/fs_uri.c | |
parent | 4d14bcd5d233c1aeef03b34ec9d4b875a5d7bd2b (diff) | |
download | gnunet-92ea81543438aebee77ceec02800da3e4da6a421.tar.gz gnunet-92ea81543438aebee77ceec02800da3e4da6a421.zip |
Refactoring gnunet time
Diffstat (limited to 'src/fs/fs_uri.c')
-rw-r--r-- | src/fs/fs_uri.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fs/fs_uri.c b/src/fs/fs_uri.c index dff4b8686..ca516cc85 100644 --- a/src/fs/fs_uri.c +++ b/src/fs/fs_uri.c | |||
@@ -630,7 +630,7 @@ uri_loc_parse (const char *s, char **emsg) | |||
630 | } | 630 | } |
631 | ass.purpose.size = htonl(sizeof(struct LocUriAssembly)); | 631 | ass.purpose.size = htonl(sizeof(struct LocUriAssembly)); |
632 | ass.purpose.purpose = htonl(GNUNET_SIGNATURE_PURPOSE_PEER_PLACEMENT); | 632 | ass.purpose.purpose = htonl(GNUNET_SIGNATURE_PURPOSE_PEER_PLACEMENT); |
633 | et.value = exptime; | 633 | et.abs_value = exptime; |
634 | ass.exptime = GNUNET_TIME_absolute_hton (et); | 634 | ass.exptime = GNUNET_TIME_absolute_hton (et); |
635 | if (GNUNET_OK != | 635 | if (GNUNET_OK != |
636 | GNUNET_CRYPTO_rsa_verify (GNUNET_SIGNATURE_PURPOSE_PEER_PLACEMENT, | 636 | GNUNET_CRYPTO_rsa_verify (GNUNET_SIGNATURE_PURPOSE_PEER_PLACEMENT, |
@@ -1885,7 +1885,7 @@ uri_loc_to_string (const struct GNUNET_FS_Uri *uri) | |||
1885 | (unsigned long long) GNUNET_ntohll (uri->data.loc.fi.file_length), | 1885 | (unsigned long long) GNUNET_ntohll (uri->data.loc.fi.file_length), |
1886 | peerId, | 1886 | peerId, |
1887 | peerSig, | 1887 | peerSig, |
1888 | (unsigned long long) uri->data.loc.expirationTime.value); | 1888 | (unsigned long long) uri->data.loc.expirationTime.abs_value); |
1889 | GNUNET_free (peerSig); | 1889 | GNUNET_free (peerSig); |
1890 | GNUNET_free (peerId); | 1890 | GNUNET_free (peerId); |
1891 | return ret; | 1891 | return ret; |