Fix trivial white space, compiler warnings
Signed-off-by: Erik Boasson <eb@ilities.com>
This commit is contained in:
parent
fc0b402584
commit
c603fdd4ed
2 changed files with 8 additions and 2 deletions
|
@ -84,4 +84,5 @@ inline int64_t ddsrt_bswap8 (int64_t x)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* DDSRT_BSWAP_H */
|
#endif /* DDSRT_BSWAP_H */
|
||||||
|
|
||||||
|
|
|
@ -292,7 +292,7 @@ static char *expand_env(const char *name, char op, const char *alt) {
|
||||||
else {
|
else {
|
||||||
char *altx = expand_envvars(alt);
|
char *altx = expand_envvars(alt);
|
||||||
error_exit("%s: %s\n", name, altx);
|
error_exit("%s: %s\n", name, altx);
|
||||||
dds_free(altx);
|
//dds_free(altx);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
case '+':
|
case '+':
|
||||||
|
@ -2103,6 +2103,7 @@ static int get_metadata(char **metadata, char **typename, char **keylist, const
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
static dds_entity_t find_topic(dds_entity_t dpFindTopic, const char *name, const dds_duration_t *timeout) {
|
static dds_entity_t find_topic(dds_entity_t dpFindTopic, const char *name, const dds_duration_t *timeout) {
|
||||||
dds_entity_t tp;
|
dds_entity_t tp;
|
||||||
(void)timeout;
|
(void)timeout;
|
||||||
|
@ -2157,6 +2158,7 @@ static dds_entity_t find_topic(dds_entity_t dpFindTopic, const char *name, const
|
||||||
|
|
||||||
return tp;
|
return tp;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static void set_systemid_env(void) {
|
static void set_systemid_env(void) {
|
||||||
// TODO Determine encoding of dds_instance_handle_t, and see what sort of value can be extracted from it, if any
|
// TODO Determine encoding of dds_instance_handle_t, and see what sort of value can be extracted from it, if any
|
||||||
|
@ -2678,7 +2680,9 @@ int main(int argc, char *argv[]) {
|
||||||
case OU: spec[i].tp = new_topic(spec[i].topicname, ts_OneULong, qos); break;
|
case OU: spec[i].tp = new_topic(spec[i].topicname, ts_OneULong, qos); break;
|
||||||
case ARB:
|
case ARB:
|
||||||
// TODO ARB type support
|
// TODO ARB type support
|
||||||
|
#if 1
|
||||||
error_exit("Currently doesn't support ARB type\n");
|
error_exit("Currently doesn't support ARB type\n");
|
||||||
|
#else
|
||||||
if (spec[i].metadata == NULL) {
|
if (spec[i].metadata == NULL) {
|
||||||
if (!(spec[i].tp = find_topic(dp, spec[i].topicname, &spec[i].findtopic_timeout)))
|
if (!(spec[i].tp = find_topic(dp, spec[i].topicname, &spec[i].findtopic_timeout)))
|
||||||
error_exit("topic %s not found\n", spec[i].topicname);
|
error_exit("topic %s not found\n", spec[i].topicname);
|
||||||
|
@ -2691,6 +2695,7 @@ int main(int argc, char *argv[]) {
|
||||||
// dds_topic_descriptor_delete((dds_topic_descriptor_t*) ts);
|
// dds_topic_descriptor_delete((dds_topic_descriptor_t*) ts);
|
||||||
}
|
}
|
||||||
// spec[i].rd.tgtp = spec[i].wr.tgtp = tgnew(spec[i].tp, printtype);
|
// spec[i].rd.tgtp = spec[i].wr.tgtp = tgnew(spec[i].tp, printtype);
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
assert(spec[i].tp);
|
assert(spec[i].tp);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue