Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
Beam Positoning Monitor - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Beam Positoning Monitor - Software
Commits
6470256f
Commit
6470256f
authored
May 27, 2014
by
Lucas Russo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
examples/*: fix default bind address
The default bind address is "/tmp/bpm" and not "/tmp/bpm/0"
parent
fd612533
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
acq.c
examples/acq.c
+1
-2
leds.c
examples/leds.c
+1
-3
No files found.
examples/acq.c
View file @
6470256f
...
...
@@ -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
);
...
...
examples/leds.c
View file @
6470256f
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment