Navigation



Ignore:
Timestamp:
Feb 22, 2011 1:26:13 PM (2 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Message:

Fix a few compilation warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/app_redirect/ard_rules.c

    r722 r723  
    103103                pmatch[0].rm_so = 0; 
    104104                pmatch[0].rm_eo = l; 
    105                 err = regexec(&c->preg, s, 0, pmatch, REG_STARTEND); 
     105                err = regexec(&c->preg, (char *)s, 0, pmatch, REG_STARTEND); 
    106106#else /* HAVE_REG_STARTEND */ 
    107107                if (!is0term) { 
    108108                        /* We have to create a copy of the string in this case */ 
    109109                        char *mystrcpy; 
    110                         CHECK_MALLOC( mystrcpy = os0dup(s, l) ); 
     110                        CHECK_MALLOC( mystrcpy = (char *)os0dup(s, l) ); 
    111111                        err = regexec(&c->preg, mystrcpy, 0, NULL, 0); 
    112112                        free(mystrcpy); 
    113113                } else { 
    114                         err = regexec(&c->preg, s, 0, NULL, 0); 
     114                        err = regexec(&c->preg, (char *)s, 0, NULL, 0); 
    115115                } 
    116116#endif /* HAVE_REG_STARTEND */ 
     
    184184                                         
    185185                                case FROM_ID: 
    186                                         CHECK_FCT( str_match(c, phdr->info.pi_diamid, phdr->info.pi_diamidlen, 1, &is_match) ); 
     186                                        CHECK_FCT( str_match(c, (uint8_t *)phdr->info.pi_diamid, phdr->info.pi_diamidlen, 1, &is_match) ); 
    187187                                        break; 
    188188                                 
    189189                                case FROM_REALM: 
    190190                                        if (phdr->info.runtime.pir_realm) { 
    191                                                 CHECK_FCT( str_match(c, phdr->info.runtime.pir_realm, phdr->info.runtime.pir_realmlen, 1, &is_match) ); 
     191                                                CHECK_FCT( str_match(c, (uint8_t *)phdr->info.runtime.pir_realm, phdr->info.runtime.pir_realmlen, 1, &is_match) ); 
    192192                                        } else { 
    193193                                                /* since we don't have the realm it was received from, assume it does not match */ 
Note: See TracChangeset for help on using the changeset viewer.