grobian / carbon-c-relay

Enhanced C implementation of Carbon relay, aggregator and rewriter
Apache License 2.0
380 stars 107 forks source link

receptor: Fix wrong function type for bindlisten*() #431

Closed ignatenkobrain closed 3 years ago

ignatenkobrain commented 3 years ago
receptor.h:23:5: warning: type of 'bindlisten' does not match original declaration [-Wlto-type-mismatch]
   23 | int bindlisten(listener *lsnr, unsigned int backlog);
      |     ^
receptor.c:214:1: note: return value type mismatch
  214 | bindlisten(listener *lsnr, unsigned int backlog)
      | ^
receptor.c:214:1: note: type 'char' should match type 'int'
receptor.c:214:1: note: 'bindlisten' was previously declared here

Signed-off-by: Igor Raits igor.raits@gmail.com

grobian commented 3 years ago

thanks, merged!