summaryrefslogtreecommitdiffstats
path: root/src/lock.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lock.c')
-rw-r--r--src/lock.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lock.c b/src/lock.c
index 49a23f3..880ddb2 100644
--- a/src/lock.c
+++ b/src/lock.c
@@ -38,7 +38,7 @@
#include "lock.h"
#include "util.h"
-// Where do lockfiles reside?
+/* Where do lockfiles reside? */
#ifndef LOCK_DIR
#define LOCK_DIR "/var/lock"
#endif
@@ -157,7 +157,7 @@ int device_lock(const char *dev, const char *appname) {
}
-// Tries to lock the first free device, returns 0 on success
+/* Tries to lock the first free device, returns 0 on success */
int device_lock_first(const char *appname, char *dev, size_t l) {
int i, found = 0;
@@ -178,7 +178,7 @@ int device_lock_first(const char *appname, char *dev, size_t l) {
}
}
-// Deletes the lockfile
+/* Deletes the lockfile */
void device_unlock(void) {
if (lockfile) {
unlink(lockfile);