projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixes, cosmetics
[apps/madmutt.git]
/
lib-mx
/
mx.c
diff --git
a/lib-mx/mx.c
b/lib-mx/mx.c
index
5d735c6
..
bebaa34
100644
(file)
--- a/
lib-mx/mx.c
+++ b/
lib-mx/mx.c
@@
-53,7
+53,7
@@
static mx_t const *mxfmts[] = {
static int dotlock_file(const char *path, int retry)
{
static int dotlock_file(const char *path, int retry)
{
- char lockfile[PATH_MAX];
+ char lockfile[
_POSIX_
PATH_MAX];
snprintf(lockfile, sizeof(lockfile), "%s.lock", path);
if (lockfile_create(lockfile, retry ? 1 : 0, 0)) {
snprintf(lockfile, sizeof(lockfile), "%s.lock", path);
if (lockfile_create(lockfile, retry ? 1 : 0, 0)) {
@@
-65,7
+65,7
@@
static int dotlock_file(const char *path, int retry)
static int undotlock_file (const char *path)
{
static int undotlock_file (const char *path)
{
- char lockfile[PATH_MAX];
+ char lockfile[
_POSIX_
PATH_MAX];
snprintf(lockfile, sizeof(lockfile), "%s.lock", path);
return lockfile_remove(lockfile);
}
snprintf(lockfile, sizeof(lockfile), "%s.lock", path);
return lockfile_remove(lockfile);
}