minissdpd.c: set BOOTID.UPNP.ORG to start timestamp

This commit is contained in:
Thomas Bernard 2016-01-13 09:49:22 +01:00
parent a8ab2149f4
commit eca7b7aabb
1 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,6 @@
/* $Id: minissdpd.c,v 1.50 2015/08/06 14:05:49 nanard Exp $ */
/* MiniUPnP project
* (c) 2007-2015 Thomas Bernard
* (c) 2007-2016 Thomas Bernard
* website : http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
* This software is subject to the conditions detailed
* in the LICENCE file provided within the distribution */
@ -1161,6 +1161,8 @@ int main(int argc, char * * argv)
return 1;
}
upnp_bootid = (unsigned int)time(NULL);
/* set signal handlers */
memset(&sa, 0, sizeof(struct sigaction));
sa.sa_handler = sigterm;