summaryrefslogtreecommitdiff
path: root/serial.c
diff options
context:
space:
mode:
authorChris Kuethe <ckuethe@users.berlios.de>2010-12-24 16:37:38 -0600
committerChris Kuethe <ckuethe@users.berlios.de>2010-12-24 16:37:38 -0600
commit1a86fcd5ffb4085624dba921cb4609bd16212db5 (patch)
treed648960203d3263f5102b33b5f3fa2359c1c6d03 /serial.c
parentc5ed17db4d8cb522f8268704feaa54be3843666f (diff)
downloadgpsd-1a86fcd5ffb4085624dba921cb4609bd16212db5.tar.gz
let character devices default to RS232
Diffstat (limited to 'serial.c')
-rw-r--r--serial.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/serial.c b/serial.c
index 1c222e29..6c9db2d8 100644
--- a/serial.c
+++ b/serial.c
@@ -47,7 +47,7 @@ static sourcetype_t gpsd_classify(const char *path)
else if (S_ISSOCK(sb.st_mode))
return source_tcp;
else if (S_ISCHR(sb.st_mode)) {
- sourcetype_t devtype = source_unknown;
+ sourcetype_t devtype = source_rs232;
#ifdef __linux__
/* Linux major device numbers live here
* ftp://ftp.kernel.org/pub/linux/docs/device-list/devices-2.6+.txt