Ignore:
Timestamp:
Oct 27, 2008, 4:08:28 PM (13 years ago)
Author:
charles
Message:

update to miniupnpc-1.2 and libnatpmp-20081009

File:
1 edited

Legend:

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

    r6848 r6967  
    1 /* $Id: minissdpc.c,v 1.4 2007/12/19 14:56:58 nanard Exp $ */
     1/* $Id: minissdpc.c,v 1.6 2008/10/06 23:08:39 nanard Exp $ */
    22/* Project : miniupnp
    33 * Author : Thomas BERNARD
    4  * copyright (c) 2005-2007 Thomas Bernard
     4 * copyright (c) 2005-2008 Thomas Bernard
    55 * This software is subjet to the conditions detailed in the
    66 * provided LICENCE file. */
     
    1717#include "miniupnpc.h"
    1818
    19 #define DECODELENGTH(n, p) n = 0; \
    20                            do { n = (n << 7) | (*p & 0x7f); } \
    21                            while(*(p++)&0x80);
    22 #define CODELENGTH(n, p) do { *p = (n & 0x7f) | ((n > 0x7f) ? 0x80 : 0); \
    23                               p++; n >>= 7; } while(n);
     19#include "codelength.h"
    2420
    2521struct UPNPDev *
     
    5349        }
    5450        stsize = strlen(devtype);
    55         buffer[0] = 1;
     51        buffer[0] = 1; /* request type 1 : request devices/services by type */
    5652        p = buffer + 1;
    5753        l = stsize;     CODELENGTH(l, p);
Note: See TracChangeset for help on using the changeset viewer.