summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/atcmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/atcmd.c b/src/atcmd.c
index eab4210..1aa415c 100644
--- a/src/atcmd.c
+++ b/src/atcmd.c
@@ -1471,7 +1471,7 @@ static int sms_atcmd_init(int fd)
return 0;
}
-static struct Lock *lock_file;
+static int lock_file;
int sms_device_close(int fd)
{
@@ -1495,7 +1495,7 @@ int sms_device_open(void)
}
lock_file = device_lock(Global.core.device);
- if (!lock_file) {
+ if (lock_file < 0) {
sms_device_close(fd);
return -1;
}