gnome-base/nautilus: bump to 3.34.3, drop USE=packagekit
[gentoo.git] / media-radio / ax25-apps / files / ax25-apps-0.0.8-fno-common.patch
1 diff --git a/ax25ipd/ax25ipd.c b/ax25ipd/ax25ipd.c
2 index 461147d..e85b44d 100644
3 --- a/ax25ipd/ax25ipd.c
4 +++ b/ax25ipd/ax25ipd.c
5 @@ -35,6 +35,25 @@ int opt_help = 0;
6  char opt_configfile[PATH_MAX];
7  char opt_ttydevice[PATH_MAX];
8  
9 +struct stats_s stats;
10 +
11 +int udp_mode;
12 +int ip_mode;
13 +unsigned short my_udp;
14 +char ttydevice[PATH_MAX];
15 +int ttyspeed;
16 +signed char mycallsign[7];
17 +unsigned char mycallsign2[7];
18 +unsigned char myalias[7];
19 +unsigned char myalias2[7];
20 +char bc_text[128];
21 +int bc_interval;
22 +int bc_every;
23 +
24 +int digi;
25 +int loglevel;
26 +int dual_port;
27 +
28  struct option options[] = {
29         {"version", 0, NULL, 'v'},
30         {"loglevel", 1, NULL, 'l'},
31 diff --git a/ax25ipd/ax25ipd.h b/ax25ipd/ax25ipd.h
32 index b088247..367024b 100644
33 --- a/ax25ipd/ax25ipd.h
34 +++ b/ax25ipd/ax25ipd.h
35 @@ -72,24 +72,25 @@
36  #include       <sys/types.h>
37  #include       <netax25/daemon.h>
38  
39 -int udp_mode;                   /* true if we need a UDP socket */
40 -int ip_mode;                    /* true if we need the raw IP socket */
41 -unsigned short my_udp;          /* the UDP port to use (network byte order) */
42 -char ttydevice[PATH_MAX];       /* the tty device for serial comms */
43 -int ttyspeed;                   /* The baud rate on the tty device */
44 -unsigned char mycallsign[7];    /* My callsign, shifted ASCII with SSID */
45 -unsigned char mycallsign2[7];   /* My seconds port callsign, shifted ASCII with SSID */
46 -unsigned char myalias[7];       /* An alias to use */
47 -unsigned char myalias2[7];      /* An alias for second port */
48 -char bc_text[128];              /* The text for beacon messages */
49 -int bc_interval;                /* The interval, in seconds, between beacons */
50 -int bc_every;                   /* true=every, false=after */
51 -int digi;                       /* True if we are connected to a TNC */
52 -int loglevel;                   /* Verbosity level */
53 +extern int udp_mode;            /* true if we need a UDP socket */
54 +extern int ip_mode;             /* true if we need the raw IP socket */
55 +extern unsigned short my_udp;   /* the UDP port to use (network byte order) */
56 +extern char ttydevice[PATH_MAX]; /* the tty device for serial comms */
57 +extern int ttyspeed;            /* The baud rate on the tty device */
58 +extern signed char mycallsign[7];    /* My callsign, shifted ASCII with SSID */
59 +extern unsigned char mycallsign2[7]; /* My seconds port callsign, shifted ASCII with SSID */
60 +extern unsigned char myalias[7];  /* An alias to use */
61 +extern unsigned char myalias2[7]; /* An alias for second port */
62 +extern char bc_text[128];       /* The text for beacon messages */
63 +extern int bc_interval;         /* The interval, in seconds, between beacons */
64 +extern int bc_every;            /* true=every, false=after */
65 +
66 +extern int digi;                /* True if we are connected to a TNC */
67 +extern int loglevel;            /* Verbosity level */
68  /* addition for dual port flag */
69 -int dual_port;
70 +extern int dual_port;
71  
72 -struct {
73 +struct stats_s {
74         int kiss_in;            /* # packets received */
75         int kiss_toobig;        /* packet too large */
76         int kiss_badtype;       /* control byte non-zero */
77 @@ -107,7 +108,9 @@ struct {
78         int ip_tooshort;        /* packet too short to be a valid frame */
79         int ip_not_for_me;      /* packet not for me (in digi mode) */
80         int ip_i_am_dest;       /* I am destination (in digi mode) */
81 -} stats;
82 +};
83 +
84 +extern struct stats_s stats;
85  
86  #define MAX_FRAME 2048
87