summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Hatch <jhatch@multitech.com>2020-06-23 08:16:31 -0500
committerJeff Hatch <jhatch@multitech.com>2020-06-23 08:16:31 -0500
commitc7a9553edb425f8ab6c83098e8a872b79629e7f9 (patch)
treef2d606a988f076ccc28fabd7cb044cab3122145b
parent10ccba808dab5a17b06456793e83d53501e39dc8 (diff)
parent7af77e2d3189c8b5a81c292e00062f2fe429461f (diff)
downloadsms-utils-c7a9553edb425f8ab6c83098e8a872b79629e7f9.tar.gz
sms-utils-c7a9553edb425f8ab6c83098e8a872b79629e7f9.tar.bz2
sms-utils-c7a9553edb425f8ab6c83098e8a872b79629e7f9.zip
Merge branch 'fix-build-issue' into 'master'
Fix build issue. See merge request !9
-rw-r--r--src/atcmd.c6
-rw-r--r--src/utils.c1
2 files changed, 2 insertions, 5 deletions
diff --git a/src/atcmd.c b/src/atcmd.c
index 76ee98c..449518c 100644
--- a/src/atcmd.c
+++ b/src/atcmd.c
@@ -1479,11 +1479,7 @@ int sms_device_close(int fd)
ret = tty_close(fd);
- if (lock_path) {
- unlink(lock_path);
- free(lock_path);
- lock_path = NULL;
- }
+ lock_file = device_unlock(lock_file);
return ret;
}
diff --git a/src/utils.c b/src/utils.c
index 5d46a36..3a18487 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -33,6 +33,7 @@
#include <fcntl.h>
#include <string.h>
#include <linux/limits.h>
+#include <sys/file.h>
#include "utils.h"
#include "log.h"