Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Cosmetic fixes to conform to CLASS (RFC21)

  • Loading branch information...
commit ee71717b33d212d6f5fac9f062cc675c41e9909e 1 parent 95381bf
Pieter Hintjens authored
2  model/generate
View
@@ -0,0 +1,2 @@
+export PATH=../scripts:$PATH
+gsl -q -script:sockopts.gsl sockopts.xml
0  sockopts.xml → model/sockopts.xml
View
File renamed without changes
4 sockopts.gsl → scripts/sockopts.gsl
View
@@ -1,4 +1,4 @@
-.output "include/zsockopt.h"
+.output "../include/zsockopt.h"
.for version
. for option
. if type = "uint64" | type = "int64" | type = "uint32" | type = "int"
@@ -112,7 +112,7 @@ int zsockopt_test (bool verbose);
#endif
#endif
-.output "src/zsockopt.c"
+.output "../src/zsockopt.c"
/* =========================================================================
zsockopt - get/set 0MQ socket options
10 src/zlist.c
View
@@ -128,9 +128,7 @@ void *
zlist_head (zlist_t *self)
{
assert (self);
- return self->head
- ? self->head->item
- : NULL;
+ return self->head? self->head->item: NULL;
}
@@ -142,14 +140,12 @@ void *
zlist_tail (zlist_t *self)
{
assert (self);
- return self->tail
- ? self->tail->item
- : NULL;
+ return self->tail? self->tail->item: NULL;
}
// --------------------------------------------------------------------------
// Return the next item. If the list is empty, returns NULL. To move to
-// the start of the list call zlist_first(). Advances the cursor.
+// the start of the list call zlist_first (). Advances the cursor.
void *
zlist_next (zlist_t *self)
2  src/zloop.c
View
@@ -453,7 +453,7 @@ s_socket_event (zloop_t *loop, zmq_pollitem_t *item, void *arg)
return -1;
}
-int
+void
zloop_test (bool verbose)
{
printf (" * zloop: ");
Please sign in to comment.
Something went wrong with that request. Please try again.