Ignore:
Timestamp:
Apr 21, 2009, 1:12:55 AM (13 years ago)
Author:
charles
Message:

(trunk) upgrade miniupnp to miniupnpc-1.3, which has small portability fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/third-party/miniupnp/upnpcommands.c

    r7837 r8263  
    1 /* $Id: upnpcommands.c,v 1.22 2008/12/18 17:45:18 nanard Exp $ */
     1/* $Id: upnpcommands.c,v 1.24 2009/04/17 21:21:19 nanard Exp $ */
    22/* Project : miniupnp
    33 * Author : Thomas Bernard
    4  * Copyright (c) 2005-2008 Thomas Bernard
     4 * Copyright (c) 2005-2009 Thomas Bernard
    55 * This software is subject to the conditions detailed in the
    66 * LICENCE file provided in this distribution.
     
    1212#include "miniupnpc.h"
    1313
    14 static unsigned int
     14static UNSIGNED_INTEGER
    1515my_atoui(const char * s)
    1616{
    17         return s ? ((unsigned int)strtoul(s, NULL, 0)) : 0;
     17        return s ? ((UNSIGNED_INTEGER)STRTOUI(s, NULL, 0)) : 0;
    1818}
    1919
    2020/*
    2121 * */
    22 unsigned int
     22UNSIGNED_INTEGER
    2323UPNP_GetTotalBytesSent(const char * controlURL,
    2424                                        const char * servicetype)
     
    4040/*
    4141 * */
    42 unsigned int
     42UNSIGNED_INTEGER
    4343UPNP_GetTotalBytesReceived(const char * controlURL,
    4444                                                const char * servicetype)
     
    6060/*
    6161 * */
    62 unsigned int
     62UNSIGNED_INTEGER
    6363UPNP_GetTotalPacketsSent(const char * controlURL,
    6464                                                const char * servicetype)
     
    8080/*
    8181 * */
    82 unsigned int
     82UNSIGNED_INTEGER
    8383UPNP_GetTotalPacketsReceived(const char * controlURL,
    8484                                                const char * servicetype)
Note: See TracChangeset for help on using the changeset viewer.