Skip to content

Commit

Permalink
Move ssdp_sa to local scope
Browse files Browse the repository at this point in the history
  • Loading branch information
Jalle19 committed Apr 19, 2024
1 parent 4bb30ae commit 31e9ba2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/minisatip.c
Original file line number Diff line number Diff line change
Expand Up @@ -1437,8 +1437,6 @@ int read_rtsp(sockets *s) {

#define JSON_STATE_MAXLEN (256 * 1024)

USockAddr ssdp_sa;

int read_http(sockets *s) {
char *arg[50];
char buf[2000]; // the XML should not be larger than 1400 as it will create
Expand Down Expand Up @@ -1678,6 +1676,7 @@ int ssdp_notify(sockets *s, int alive) {
int i;
s->wtime = getTick();

USockAddr ssdp_sa;
// use IPv4 only as disc_host is multicast IPv4
fill_sockaddr(&ssdp_sa, opts.disc_host, 1900, 1);
strcpy(nt[0], "::upnp:rootdevice");
Expand Down

0 comments on commit 31e9ba2

Please sign in to comment.