Changeset 32683


Ignore:
Timestamp:
Jul 13, 2017, 8:38:09 AM (2 weeks ago)
Author:
brainslayer
Message:

fix warnings

Location:
src/router
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/router/libutils/country.c

    r32682 r32683  
    892892};
    893893#endif
    894 unsigned int getRegDomain(const char *country)
     894unsigned int getRegDomain(char *country)
    895895{
    896896        int i;
     
    902902}
    903903
    904 unsigned int getCountry(const char *country)
     904unsigned int getCountry(char *country)
    905905{
    906906        int i;
     
    912912}
    913913
    914 const char *getIsoName(const char *country)
     914const char *getIsoName(char *country)
    915915{
    916916        int i;
     
    922922}
    923923
    924 const char *getCountryByIso(const char *country)
     924const char *getCountryByIso(char *country)
    925925{
    926926        int i;
     
    969969#ifdef HAVE_BUFFALO
    970970        char country[80];
    971         char *region = getUEnv("region");
     971        char *region = getUEnv("region");       
    972972        if (!region) {
    973973                region = "_D";
  • src/router/shared/utils.h

    r32682 r32683  
    11631163u_int64_t freediskSpace(char *path);
    11641164
    1165 const char *getIsoName(const char *country);
     1165const char *getIsoName(char *country);
    11661166int has_gateway(void);          // return 1 if nat/gateway mode is enabled for wan
    11671167#if defined(HAVE_RT2880) || defined(HAVE_RT61)
  • src/router/shared/wlutils.h

    r32682 r32683  
    270270int isAssociated(char *ifname);
    271271
    272 unsigned int getRegDomain(const char *country);
    273 unsigned int getCountry(const char *country);
    274 const char *getCountryByIso(const char *iso);
     272unsigned int getRegDomain(char *country);
     273unsigned int getCountry(char *country);
     274const char *getCountryByIso(char *iso);
    275275char *getCountryList(void);
    276276
Note: See TracChangeset for help on using the changeset viewer.