Changeset 9136


Ignore:
Timestamp:
02/27/08 13:14:51 (5 years ago)
Author:
BrainSlayer
Message:

crashfix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/router/services/networking/interface.c

    r9131 r9136  
    325325    } 
    326326     
     327char exec[64]; 
    327328  for (i = 0; i < 16; i++) 
    328329    { 
     
    331332  for (i = 0; i < 16; i++) 
    332333    { 
    333       sprintf (tmp, "echo "" > /proc/switch/eth0/vlan/%d/ports",i); 
    334       system2 (tmp); 
     334      sprintf (exec, "echo "" > /proc/switch/eth0/vlan/%d/ports",i); 
     335      system2 (exec); 
    335336    } 
    336337  for (i = 0; i < 16; i++) 
    337338    { 
    338       sprintf (tmp, "echo %s > /proc/switch/eth0/vlan/%d/ports",portsettings[i], i); 
    339       system2 (tmp); 
     339      sprintf (exec, "echo %s > /proc/switch/eth0/vlan/%d/ports",portsettings[i], i); 
     340      system2 (exec); 
    340341    } 
    341342  return ret; 
Note: See TracChangeset for help on using the changeset viewer.