diff options
Diffstat (limited to 'hdlcutil')
-rw-r--r-- | hdlcutil/hdrvcomm.c | 6 | ||||
-rw-r--r-- | hdlcutil/hdrvcomm.h | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/hdlcutil/hdrvcomm.c b/hdlcutil/hdrvcomm.c index 7392d4e..6b4335e 100644 --- a/hdlcutil/hdrvcomm.c +++ b/hdlcutil/hdrvcomm.c @@ -65,7 +65,7 @@ #ifdef HDRVC_KERNEL static int kernel_mode = 1; #endif /* HDRVC_KERNEL */ -static char *if_name = "bcsf0"; +static const char *if_name = "bcsf0"; static char *prg_name; static int fd = -1; static struct ifreq ifr_h; @@ -171,14 +171,14 @@ int hdrvc_getfd(void) /* ---------------------------------------------------------------------- */ -char *hdrvc_ifname(void) +const char *hdrvc_ifname(void) { return if_name; } /* ---------------------------------------------------------------------- */ -void hdrvc_args(int *argc, char *argv[], char *def_if) +void hdrvc_args(int *argc, char *argv[], const char *def_if) { int ac, i; diff --git a/hdlcutil/hdrvcomm.h b/hdlcutil/hdrvcomm.h index ce3767e..fbb4965 100644 --- a/hdlcutil/hdrvcomm.h +++ b/hdlcutil/hdrvcomm.h @@ -87,8 +87,8 @@ struct hdrvc_channel_state { extern int hdrvc_recvpacket(char *pkt, int maxlen); extern int hdrvc_getfd(void); -extern char *hdrvc_ifname(void); -extern void hdrvc_args(int *argc, char *argv[], char *def_if); +extern const char *hdrvc_ifname(void); +extern void hdrvc_args(int *argc, char *argv[], const char *def_if); extern void hdrvc_init(void); extern int hdrvc_get_samples(void); extern int hdrvc_get_bits(void); |