summaryrefslogtreecommitdiffstats
path: root/src/host/osmocon
diff options
context:
space:
mode:
authorHarald Welte2010-03-22 01:26:04 +0100
committerHarald Welte2010-03-22 01:26:04 +0100
commitc1cee898dfa33a81a585abb2ffb36fa026552fc3 (patch)
tree463ea9eb8888f196a7f0015f6fe3c10c801aff24 /src/host/osmocon
parentcalypsu UART: add additional debug output in UART RX error case (diff)
downloadosmocom-c1cee898dfa33a81a585abb2ffb36fa026552fc3.tar.gz
osmocom-c1cee898dfa33a81a585abb2ffb36fa026552fc3.tar.xz
osmocom-c1cee898dfa33a81a585abb2ffb36fa026552fc3.zip
misc compiler warning fixes
* added missing param in call to gsm48_rx_bcch * added 'extern' to declarations of rsl_rlm_cause_strs and target_board * added several 'const' for strings * removed useless 'bufptr,' from hexdump (From: itsme <itsme@xs4all.nl>)
Diffstat (limited to 'src/host/osmocon')
-rw-r--r--src/host/osmocon/osmocon.c6
-rw-r--r--src/host/osmocon/osmoload.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/host/osmocon/osmocon.c b/src/host/osmocon/osmocon.c
index 82ff0e0..f934dd7 100644
--- a/src/host/osmocon/osmocon.c
+++ b/src/host/osmocon/osmocon.c
@@ -665,9 +665,9 @@ extern void hdlc_tpudbg_cb(uint8_t dlci, struct msgb *msg);
int main(int argc, char **argv)
{
int opt, flags;
- char *serial_dev = "/dev/ttyUSB1";
- char *layer2_un_path = "/tmp/osmocom_l2";
- char *loader_un_path = "/tmp/osmocom_loader";
+ const char *serial_dev = "/dev/ttyUSB1";
+ const char *layer2_un_path = "/tmp/osmocom_l2";
+ const char *loader_un_path = "/tmp/osmocom_loader";
dnload.mode = MODE_C123;
diff --git a/src/host/osmocon/osmoload.c b/src/host/osmocon/osmoload.c
index 2ee0124..ecee8b3 100644
--- a/src/host/osmocon/osmoload.c
+++ b/src/host/osmocon/osmoload.c
@@ -39,7 +39,7 @@ static void hexdump(const uint8_t *data, unsigned int len)
const uint8_t *bufptr = data;
int n;
- for (n=0; bufptr, n < len; n++, bufptr++)
+ for (n=0; n < len; n++, bufptr++)
printf("%02x ", *bufptr);
printf("\n");
}