mirror of
git://sigrok.org/libserialport
synced 2023-08-10 21:13:24 +03:00
Make std_baudrates[] static (only used in one file).
This commit is contained in:
parent
dc422c04af
commit
6c6aebe78c
@ -160,10 +160,7 @@ struct std_baudrate {
|
||||
int value;
|
||||
};
|
||||
|
||||
extern const struct std_baudrate std_baudrates[];
|
||||
|
||||
#define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
|
||||
#define NUM_STD_BAUDRATES ARRAY_SIZE(std_baudrates)
|
||||
|
||||
extern void (*sp_debug_handler)(const char *format, ...);
|
||||
|
||||
|
@ -24,7 +24,7 @@
|
||||
#include "libserialport.h"
|
||||
#include "libserialport_internal.h"
|
||||
|
||||
const struct std_baudrate std_baudrates[] = {
|
||||
static const struct std_baudrate std_baudrates[] = {
|
||||
#ifdef _WIN32
|
||||
/*
|
||||
* The baudrates 50/75/134/150/200/1800/230400/460800 do not seem to
|
||||
@ -44,6 +44,8 @@ const struct std_baudrate std_baudrates[] = {
|
||||
#endif
|
||||
};
|
||||
|
||||
#define NUM_STD_BAUDRATES ARRAY_SIZE(std_baudrates)
|
||||
|
||||
void (*sp_debug_handler)(const char *format, ...) = sp_default_debug_handler;
|
||||
|
||||
static enum sp_return get_config(struct sp_port *port, struct port_data *data,
|
||||
|
Loading…
Reference in New Issue
Block a user