Skip to content

Commit fc75ab3

Browse files
committed
Merge pull request #152 from hintjens/master
Added libsodium hook
2 parents 658a712 + 3e8a16d commit fc75ab3

File tree

5 files changed

+8
-9
lines changed

5 files changed

+8
-9
lines changed

configure.ac

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ AC_SUBST(LTVER)
4141
# Capture c flags
4242
CZMQ_ORIG_CFLAGS="${CFLAGS:-none}"
4343

44-
# Checks for programs.
44+
# Checks for programs
4545
AC_PROG_CC
4646
AC_PROG_CC_C99
4747
AM_PROG_CC_C_O
@@ -50,9 +50,11 @@ AC_PROG_LIBTOOL
5050
AC_PROG_SED
5151
AC_PROG_AWK
5252

53-
# Checks for libraries.
53+
# Checks for libraries
5454
AC_CHECK_LIB([pthread], [pthread_create])
55+
AC_CHECK_LIB([sodium], [sodium_init])
5556

57+
# Code coverage
5658
AC_ARG_WITH(gcov, [AS_HELP_STRING([--with-gcov=yes/no],
5759
[With GCC Code Coverage reporting.])],
5860
[CZMQ_GCOV="$withval"])
@@ -209,9 +211,6 @@ AC_HEADER_TIME
209211
AC_TYPE_UINT32_T
210212
AC_C_VOLATILE
211213

212-
# Math libraries
213-
AC_CHECK_LIB([m], [pow])
214-
215214
# These options are GNU compiler specific.
216215
if test "x$GCC" = "xyes"; then
217216
CPPFLAGS="-pedantic -Werror -Wall ${CPPFLAGS}"

include/zhash.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ extern "C" {
3232
#endif
3333

3434
// Opaque class structure
35-
typedef struct _zhash zhash_t;
35+
typedef struct _zhash_t zhash_t;
3636

3737
// @interface
3838
// Callback function for zhash_foreach method

include/zlist.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ extern "C" {
3232
#endif
3333

3434
// Opaque class structure
35-
typedef struct _zlist zlist_t;
35+
typedef struct _zlist_t zlist_t;
3636

3737
// @interface
3838
// Comparison function for zlist_sort method

src/zhash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ typedef struct _item_t {
5757
// ---------------------------------------------------------------------
5858
// Structure of our class
5959

60-
struct _zhash {
60+
struct _zhash_t {
6161
size_t size; // Current size of hash table
6262
size_t limit; // Current hash table limit
6363
item_t **items; // Array of items

src/zlist.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ typedef struct _node_t {
4646
// ---------------------------------------------------------------------
4747
// Structure of our class
4848

49-
struct _zlist {
49+
struct _zlist_t {
5050
node_t *head; // First item in list, if any
5151
node_t *tail; // Last item in list, if any
5252
node_t *cursor; // Current cursors for iteration

0 commit comments

Comments
 (0)