Ignore:
Timestamp:
2010-03-07T15:13:28Z (14 years ago)
Author:
Lukas Mejdrech <lukasmejdrech@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
936835e
Parents:
aa85487
Message:

Coding style (no functional change)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/include/protocol_map.h

    raa85487 raadf01e  
    5050 *  @returns 0 if mapping is not found.
    5151 */
    52 static inline eth_type_t protocol_map( services_t nil, services_t il ){
    53         switch( nil ){
     52static inline eth_type_t protocol_map(services_t nil, services_t il){
     53        switch(nil){
    5454                case SERVICE_ETHERNET:
    5555                case SERVICE_DP8390:
    56                         switch( il ){
     56                        switch(il){
    5757                                case SERVICE_IP:
    5858                                        return ETH_P_IP;
     
    7373 *  @returns 0 if mapping is not found.
    7474 */
    75 static inline services_t protocol_unmap( services_t nil, int protocol ){
    76         switch( nil ){
     75static inline services_t protocol_unmap(services_t nil, int protocol){
     76        switch(nil){
    7777                case SERVICE_ETHERNET:
    7878                case SERVICE_DP8390:
    79                         switch( protocol ){
     79                        switch(protocol){
    8080                                case ETH_P_IP:
    8181                                        return SERVICE_IP;
     
    9595 *  @returns ETH_LSAP_NULL if mapping is not found.
    9696 */
    97 static inline eth_type_t lsap_map( eth_lsap_t lsap ){
    98         switch( lsap ){
     97static inline eth_type_t lsap_map(eth_lsap_t lsap){
     98        switch(lsap){
    9999                case ETH_LSAP_IP:
    100100                        return ETH_P_IP;
     
    111111 *  @returns 0 if mapping is not found.
    112112 */
    113 static inline eth_lsap_t lsap_unmap( eth_type_t ethertype ){
    114         switch( ethertype ){
     113static inline eth_lsap_t lsap_unmap(eth_type_t ethertype){
     114        switch(ethertype){
    115115                case ETH_P_IP:
    116116                        return ETH_LSAP_IP;
     
    127127 *  @returns 0 if mapping is not found.
    128128 */
    129 static inline hw_type_t hardware_map( services_t nil ){
    130         switch( nil ){
     129static inline hw_type_t hardware_map(services_t nil){
     130        switch(nil){
    131131                case SERVICE_ETHERNET:
    132132                case SERVICE_DP8390:
Note: See TracChangeset for help on using the changeset viewer.