Changeset 115

Show
Ignore:
Timestamp:
05/06/04 19:01:04 (9 years ago)
Author:
aprilp
Message:

Cleanups and standardized things

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/wifidog/src/http.c

    r113 r115  
    4444                httpdOutput(webserver, "Internal error occurred"); 
    4545        } else { 
    46                 // Re-direct them to auth server 
     46                /* Re-direct them to auth server */ 
    4747                httpdSetResponse(webserver, "307 Please authenticate yourself here"); 
    4848                httpdAddHeader(webserver, newlocation); 
     
    8181 
    8282        if ((token = httpdGetVariableByName(webserver, "token"))) { 
    83                 // They supplied variable "token" 
     83                /* They supplied variable "token" */ 
    8484                if (!(mac = arp_get(webserver->clientAddr))) { 
    85                         // We could not get their MAC address 
     85                        /* We could not get their MAC address */ 
    8686                        debug(LOG_ERR, "Failed to retrieve MAC address for " 
    8787                                "ip %s", webserver->clientAddr); 
     
    8989                                        "address"); 
    9090                } else { 
    91                         // We have their MAC address 
     91                        /* We have their MAC address */ 
    9292 
    9393                        pthread_mutex_lock(&nodes_mutex); 
     
    123123                } 
    124124        } else { 
    125                 // They did not supply variable "token" 
     125                /* They did not supply variable "token" */ 
    126126                httpdOutput(webserver, "Invalid token"); 
    127127        }