Changeset 5b09777 in rtems


Ignore:
Timestamp:
Oct 25, 2005, 2:17:06 PM (14 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
af028338
Parents:
b259863
Message:

Rename register_icmds to

_rtems_telnet_register_icmds. Make main_* functions static.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/telnetd/icmds.c

    rb259863 r5b09777  
    11#include <rtems/shell.h>
    22#include <rtems/rtems_bsdnet.h>
     3
    34/*+++++++++++++++++++++++++++++++++++++++++++++*/
    4 int main_inet(int argc,char * argv[]) {
     5static int main_inet(int argc,char * argv[]) {
    56 rtems_bsdnet_show_inet_routes ();
    67 return 0;
    78}
    89/*+++++++++++++++++++++++++++++++++++++++++++++*/
    9 int main_mbuf(int argc,char * argv[]) {
     10static int main_mbuf(int argc,char * argv[]) {
    1011 rtems_bsdnet_show_mbuf_stats ();
    1112 return 0;
    1213}
    1314/*+++++++++++++++++++++++++++++++++++++++++++++*/
    14 int main_if(int argc,char * argv[]) {
     15static int main_if(int argc,char * argv[]) {
    1516 rtems_bsdnet_show_if_stats ();
    1617 return 0;
    1718}
    1819/*+++++++++++++++++++++++++++++++++++++++++++++*/
    19 int main_ip(int argc,char * argv[]) {
     20static int main_ip(int argc,char * argv[]) {
    2021 rtems_bsdnet_show_ip_stats ();
    2122 return 0;
    2223}
    2324/*+++++++++++++++++++++++++++++++++++++++++++++*/
    24 int main_icmp(int argc,char * argv[]) {
     25static int main_icmp(int argc,char * argv[]) {
    2526 rtems_bsdnet_show_icmp_stats ();
    2627 return 0;
    2728}
    2829/*+++++++++++++++++++++++++++++++++++++++++++++*/
    29 int main_tcp(int argc,char * argv[]) {
     30static int main_tcp(int argc,char * argv[]) {
    3031 rtems_bsdnet_show_tcp_stats ();
    3132 return 0;
    3233}
    3334/*+++++++++++++++++++++++++++++++++++++++++++++*/
    34 int main_udp(int argc,char * argv[]) {
     35static int main_udp(int argc,char * argv[]) {
    3536 rtems_bsdnet_show_udp_stats ();
    3637 return 0;
    3738}
    3839/*+++++++++++++++++++++++++++++++++++++++++++++*/
    39 void register_icmds(void) {
     40
     41void _rtems_telnetd_register_icmds(void) {
    4042 shell_add_cmd("inet"    ,"net","inet routes"               ,main_inet);   
    4143 shell_add_cmd("mbuf"    ,"net","mbuf stats"                ,main_mbuf);   
Note: See TracChangeset for help on using the changeset viewer.