Fix some weird lint found by clang
Small stuff, no behavior change expected.
This commit is contained in:
parent
12379ed26a
commit
35a8485a44
|
|
@ -71,7 +71,7 @@ const char HELP[] =
|
|||
#endif
|
||||
#include <fcntl.h>
|
||||
|
||||
#if HAVE_GETOPT_H
|
||||
#ifdef HAVE_GETOPT_H
|
||||
#include <getopt.h>
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -1648,7 +1648,7 @@ extern "C" const char* ivl_nexus_name(ivl_nexus_t net)
|
|||
assert(net);
|
||||
if (net->name_ == 0) {
|
||||
char tmp[2 * sizeof(net) + 5];
|
||||
snprintf(tmp, sizeof tmp, "n%p", net);
|
||||
snprintf(tmp, sizeof tmp, "n%p", (void *)net);
|
||||
net->name_ = api_strings.add(tmp);
|
||||
}
|
||||
return net->name_;
|
||||
|
|
|
|||
Loading…
Reference in New Issue