summaryrefslogtreecommitdiff
path: root/src/sms_main.c
diff options
context:
space:
mode:
authorJames Maki <jmaki@multitech.com>2010-05-07 10:12:55 -0500
committerJames Maki <jmaki@multitech.com>2010-05-07 10:12:55 -0500
commitb7e06668878af06fc6e74842861e725b982b142f (patch)
tree4709270926ad7fc804fd71d455503b6945224c0f /src/sms_main.c
parent2b85ae17d6c73c619d17f8987069c0e6aaf390a2 (diff)
downloadsms-utils-b7e06668878af06fc6e74842861e725b982b142f.tar.gz
sms-utils-b7e06668878af06fc6e74842861e725b982b142f.tar.bz2
sms-utils-b7e06668878af06fc6e74842861e725b982b142f.zip
add device lock
Diffstat (limited to 'src/sms_main.c')
-rw-r--r--src/sms_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sms_main.c b/src/sms_main.c
index f319019..d1155b8 100644
--- a/src/sms_main.c
+++ b/src/sms_main.c
@@ -59,7 +59,7 @@ static int pb_list(int argc, char **argv)
ret = print_phonebook_list(fd, Global.core.pb_store);
- tty_close(fd);
+ sms_device_close(fd);
return ret;
}
@@ -75,7 +75,7 @@ static int sms_init(int argc, char **argv)
return false;
}
- tty_close(fd);
+ sms_device_close(fd);
return true;
}