Statistics
| Branch: | Revision:

iof-bird-daemon / client / client.c @ 9fac310d

History | View | Annotate | Download (795 Bytes)

1
/*
2
 *        BIRD Client
3
 *
4
 *        (c) 1999--2000 Martin Mares <mj@ucw.cz>
5
 *
6
 *        Can be freely distributed and used under the terms of the GNU GPL.
7
 */
8

    
9
#include <stdio.h>
10
#include <string.h>
11
#include <stdlib.h>
12
#include <unistd.h>
13

    
14
#include "nest/bird.h"
15
#include "lib/resource.h"
16
#include "client/client.h"
17

    
18
static char *opt_list = "";
19

    
20
static void
21
usage(void)
22
{
23
  fprintf(stderr, "Usage: birdc\n");
24
  exit(1);
25
}
26

    
27
static void
28
parse_args(int argc, char **argv)
29
{
30
  int c;
31

    
32
  while ((c = getopt(argc, argv, opt_list)) >= 0)
33
    switch (c)
34
      {
35
      default:
36
        usage();
37
      }
38
  if (optind < argc)
39
    usage();
40
}
41

    
42
int
43
main(int argc, char **argv)
44
{
45
#ifdef HAVE_LIBDMALLOC
46
  if (!getenv("DMALLOC_OPTIONS"))
47
    dmalloc_debug(0x2f03d00);
48
#endif
49

    
50
  parse_args(argc, argv);
51

    
52
  bug("Not implemented yet!");
53
}