aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_common.h
diff options
context:
space:
mode:
authorDavid Barksdale <amatus.amongus@gmail.com>2015-07-19 15:35:07 +0000
committerDavid Barksdale <amatus.amongus@gmail.com>2015-07-19 15:35:07 +0000
commita5e12b53160fbf359dd469408c600f0eb976590b (patch)
treee59bee9ea565e3f9a3f976d939d4c566f29563d5 /src/include/gnunet_common.h
parentbba1229ab25ed0ae236c3062e371bb97d9a05375 (diff)
downloadgnunet-a5e12b53160fbf359dd469408c600f0eb976590b.tar.gz
gnunet-a5e12b53160fbf359dd469408c600f0eb976590b.zip
Remove this GNUNET_htonl_signed nonsense
Diffstat (limited to 'src/include/gnunet_common.h')
-rw-r--r--src/include/gnunet_common.h76
1 files changed, 2 insertions, 74 deletions
diff --git a/src/include/gnunet_common.h b/src/include/gnunet_common.h
index 24b922aad..c082398f8 100644
--- a/src/include/gnunet_common.h
+++ b/src/include/gnunet_common.h
@@ -727,9 +727,9 @@ GNUNET_ntohll (uint64_t n);
727 * Convert double to network byte order. 727 * Convert double to network byte order.
728 * 728 *
729 * @param d 729 * @param d
730 * The value in network byte order. 730 * The value in host byte order.
731 * 731 *
732 * @return The same value in host byte order. 732 * @return The same value in network byte order.
733 */ 733 */
734double 734double
735GNUNET_hton_double (double d); 735GNUNET_hton_double (double d);
@@ -747,78 +747,6 @@ double
747GNUNET_ntoh_double (double d); 747GNUNET_ntoh_double (double d);
748 748
749 749
750/**
751 * Convert signed 64-bit integer to network byte order.
752 *
753 * @param n
754 * The value in host byte order.
755 *
756 * @return The same value in network byte order.
757 */
758uint64_t
759GNUNET_htonll_signed (int64_t n);
760
761
762/**
763 * Convert signed 64-bit integer to host byte order.
764 *
765 * @param n
766 * The value in network byte order.
767 *
768 * @return The same value in host byte order.
769 */
770int64_t
771GNUNET_ntohll_signed (uint64_t n);
772
773
774/**
775 * Convert signed 32-bit integer to network byte order.
776 *
777 * @param n
778 * The value in host byte order.
779 *
780 * @return The same value in network byte order.
781 */
782uint32_t
783GNUNET_htonl_signed (int32_t n);
784
785
786/**
787 * Convert signed 32-bit integer to host byte order.
788 *
789 * @param n
790 * The value in network byte order.
791 *
792 * @return The same value in host byte order.
793 */
794int32_t
795GNUNET_ntohl_signed (uint32_t n);
796
797
798/**
799 * Convert signed 16-bit integer to network byte order.
800 *
801 * @param n
802 * The value in host byte order.
803 *
804 * @return The same value in network byte order.
805 */
806uint16_t
807GNUNET_htons_signed (int16_t n);
808
809
810/**
811 * Convert signed 16-bit integer to host byte order.
812 *
813 * @param n
814 * The value in network byte order.
815 *
816 * @return The same value in host byte order.
817 */
818int16_t
819GNUNET_ntohs_signed (uint16_t n);
820
821
822/* ************************* allocation functions ****************** */ 750/* ************************* allocation functions ****************** */
823 751
824/** 752/**