projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
makedoc won't work anymore.
[apps/madmutt.git]
/
dotlock.c
diff --git
a/dotlock.c
b/dotlock.c
index
3f55d40
..
8d562c8
100644
(file)
--- a/
dotlock.c
+++ b/
dotlock.c
@@
-11,13
+11,7
@@
#include <lib-lib/lib-lib.h>
#include <sys/utsname.h>
#include <lib-lib/lib-lib.h>
#include <sys/utsname.h>
-
-#ifndef _POSIX_PATH_MAX
-#include <posix1_lim.h>
-#endif
-
#include "dotlock.h"
#include "dotlock.h"
-#include "config.h"
#ifdef HAVE_GETOPT_H
#include <getopt.h>
#ifdef HAVE_GETOPT_H
#include <getopt.h>
@@
-91,7
+85,7
@@
int main (int argc, char **argv)
/* determine the system's host name */
uname (&utsname);
/* determine the system's host name */
uname (&utsname);
- if (!(Hostname = strdup
(utsname.nodename))) /* __MEM_CHECKED__ */
+ if (!(Hostname = strdup
(utsname.nodename)))
return DL_EX_ERROR;
if ((p = strchr (Hostname, '.')))
*p = '\0';
return DL_EX_ERROR;
if ((p = strchr (Hostname, '.')))
*p = '\0';
@@
-482,7
+476,7
@@
static int dotlock_lock (const char *frealpath)
{
char lockfile[_POSIX_PATH_MAX + LONG_STRING];
char nfslockfile[_POSIX_PATH_MAX + LONG_STRING];
{
char lockfile[_POSIX_PATH_MAX + LONG_STRING];
char nfslockfile[_POSIX_PATH_MAX + LONG_STRING];
- size_t prev_size = 0;
+ s
s
ize_t prev_size = 0;
int fd;
int count = 0;
int hard_count = 0;
int fd;
int count = 0;
int hard_count = 0;