Skip to content

Commit

Permalink
tools/nut-scanner/nut-scanner.c, tools/nut-scanner/nutscan-ip.h: move…
Browse files Browse the repository at this point in the history
… ip_range_t definition into header [networkupstools#2244]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
  • Loading branch information
jimklimov committed Jul 8, 2024
1 parent 2777423 commit 50471bb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
5 changes: 0 additions & 5 deletions tools/nut-scanner/nut-scanner.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,6 @@ static char * serial_ports = NULL;
static int cli_link_detail_level = -1;

/* Track requested IP ranges (from CLI or auto-discovery) */
typedef struct ip_range_s {
char * start_ip;
char * end_ip;
struct ip_range_s * next;
} ip_range_t;
static ip_range_t * ip_ranges = NULL;
static ip_range_t * ip_ranges_last = NULL;
static size_t ip_ranges_count = 0;
Expand Down
8 changes: 8 additions & 0 deletions tools/nut-scanner/nutscan-ip.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,14 @@ char * nutscan_ip_iter_init(nutscan_ip_iter_t *, const char * startIP, const cha
char * nutscan_ip_iter_inc(nutscan_ip_iter_t *);
int nutscan_cidr_to_ip(const char * cidr, char ** start_ip, char ** stop_ip);

/* Track requested IP ranges (from CLI or auto-discovery) */
/* One IP address range: */
typedef struct ip_range_s {
char * start_ip;
char * end_ip;
struct ip_range_s * next;
} ip_range_t;

#ifdef __cplusplus
/* *INDENT-OFF* */
}
Expand Down

0 comments on commit 50471bb

Please sign in to comment.