diff options
author | Maksym Telychko <maksym.telychko@globallogic.com> | 2020-04-16 16:48:25 +0300 |
---|---|---|
committer | Maksym Telychko <maksym.telychko@globallogic.com> | 2020-04-16 16:48:25 +0300 |
commit | a2eda5de55c7176a345b3a1e0d5a45b5773455c7 (patch) | |
tree | 27dac2df5b3eb57cb80cc5c1cf89a0b3a29142c1 /src/utils.h | |
parent | 8ce0f4a320f56b582e51cca09ebf8fbc8326987d (diff) | |
download | sms-utils-a2eda5de55c7176a345b3a1e0d5a45b5773455c7.tar.gz sms-utils-a2eda5de55c7176a345b3a1e0d5a45b5773455c7.tar.bz2 sms-utils-a2eda5de55c7176a345b3a1e0d5a45b5773455c7.zip |
Revert "MTX-3262 mpower lockfile rewrite for libmts-io compatibility"
This reverts commit f4b78a288c9e5c2a7a05d71b9bbe9e5fc26f2a63.
Diffstat (limited to 'src/utils.h')
-rw-r--r-- | src/utils.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/utils.h b/src/utils.h index eb9d5bc..04a71b6 100644 --- a/src/utils.h +++ b/src/utils.h @@ -30,18 +30,12 @@ enum { USER_YESNO_YES = 1, }; -struct Lock { - char *path; - int fd; -}; - int user_yesno(int def, const char *fmt, ...); int systemf(const char *fmt, ...); FILE *popenf(const char *mode, const char *fmt, ...); char *shell_path_expand(const char *path); -struct Lock *device_lock(const char *path); -struct Lock *device_unlock(struct Lock *lock); +char *device_lock(const char *path); int indexOfChar(const char *array, int len, char character); |