Commit 6470256f authored by Lucas Russo's avatar Lucas Russo

examples/*: fix default bind address

The default bind address is "/tmp/bpm" and not
"/tmp/bpm/0"
parent fd612533
......@@ -11,7 +11,6 @@
#include <bpm_client.h>
#define DFLT_BIND_FOLDER "/tmp/bpm"
#define DFLT_BIND_ADDR "0"
#define DEFAULT_NUM_SAMPLES 4096
......@@ -111,7 +110,7 @@ int main (int argc, char *argv [])
/* Set default broker address */
if (broker_endp == NULL) {
broker_endp = strdup ("ipc://"DFLT_BIND_FOLDER"/"DFLT_BIND_ADDR);
broker_endp = strdup ("ipc://"DFLT_BIND_FOLDER);
}
bpm_client_t *bpm_client = bpm_client_new (broker_endp, verbose);
......
......@@ -10,8 +10,6 @@
#include <bpm_client.h>
#define DFLT_BIND_FOLDER "/tmp/bpm"
#define DFLT_BIND_ADDR "0"
#define LEDS_OPERATION 0
void print_help (char *program_name)
{
......@@ -57,7 +55,7 @@ int main (int argc, char *argv [])
/* Set default broker address */
if (broker_endp == NULL) {
broker_endp = strdup ("ipc://"DFLT_BIND_FOLDER"/"DFLT_BIND_ADDR);
broker_endp = strdup ("ipc://"DFLT_BIND_FOLDER);
}
bpm_client_t *bpm_client = bpm_client_new (broker_endp, verbose);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment