Remove bad includes from SI code 95/2295/1 3.0.2
authorE. Scott Daniels <daniels@research.att.com>
Tue, 21 Jan 2020 18:22:55 +0000 (13:22 -0500)
committerE. Scott Daniels <daniels@research.att.com>
Tue, 21 Jan 2020 18:22:55 +0000 (13:22 -0500)
Code was referencing NNG headers which breaks when building on a
"clean" environment.

Signed-off-by: E. Scott Daniels <daniels@research.att.com>
Change-Id: Ic9501e8c70a0425b96d18c1c22e29cdd7eef601b

src/rmr/si/src/rmr_si.c
src/rmr/si/src/sr_si_static.c

index fd8dcb0..6c08e83 100644 (file)
@@ -526,7 +526,7 @@ extern int rmr_set_rtimeout( void* vctx, int time ) {
 static void* init(  char* uproto_port, int max_msg_size, int flags ) {
        static  int announced = 0;
        uta_ctx_t*      ctx = NULL;
-       char    bind_info[NNG_MAXADDRLEN];      // bind info
+       char    bind_info[256];                         // bind info
        char*   proto = "tcp";                          // pointer into the proto/port string user supplied
        char*   port;
        char*   interface = NULL;                       // interface to bind to (from RMR_BIND_IF, 0.0.0.0 if not defined)
index 0ca5eec..6f433ac 100644 (file)
@@ -21,7 +21,7 @@
 /*
        Mnemonic:       sr_si_static.c
        Abstract:       These are static send/receive primatives which (sadly)
-                               differ based on the underlying protocol (nng vs nanomsg).
+                               differ based on the underlying protocol (nng vs SI95).
                                Split from rmr_nng.c  for easier wormhole support.
 
        Author:         E. Scott Daniels
 #ifndef _sr_si_static_c
 #define _sr_si_static_c
 
-#include <nng/nng.h>
-#include <nng/protocol/pubsub0/pub.h>
-#include <nng/protocol/pubsub0/sub.h>
-#include <nng/protocol/pipeline0/push.h>
-#include <nng/protocol/pipeline0/pull.h>
-
-
 static void dump_40( char *p, char* label ) {
        int i;