source: rtems/testsuites/samples/pppd/init.c @ 5f0cd34

4.11
Last change on this file since 5f0cd34 was 5f0cd34, checked in by Joel Sherrill <joel.sherrill@…>, on May 12, 2012 at 4:12:57 PM

samples - Eliminate missing prototype warnings

  • Property mode set to 100644
File size: 796 bytes
Line 
1/*
2 *  COPYRIGHT (c) 1989-2012.
3 *  On-Line Applications Research Corporation (OAR).
4 *
5 *  The license and distribution terms for this file may be
6 *  found in the file LICENSE in this distribution or at
7 *  http://www.rtems.com/license/LICENSE.
8 */
9
10#ifdef HAVE_CONFIG_H
11#include "config.h"
12#endif
13
14#include <stdio.h>
15#include <stdlib.h>
16#include <string.h>
17
18#define CONFIGURE_INIT
19#include "system.h"
20
21#if !BSP_SMALL_MEMORY
22#include <rtems/rtems_bsdnet.h>
23#include <rtems/rtemspppd.h>
24#include "netconfig.h"
25#endif
26
27rtems_task Init(rtems_task_argument argument)
28{
29#if BSP_SMALL_MEMORY
30  printf("NO NETWORKING. MEMORY TOO SMALL");
31#else
32  /* initialize network */
33  rtems_bsdnet_initialize_network();
34  rtems_pppd_initialize();
35  pppdapp_initialize();
36#endif
37  rtems_task_delete(RTEMS_SELF);
38}
Note: See TracBrowser for help on using the repository browser.