static int dotlock_lock (const char *);
-#define check_flags(a) if (a & DL_FL_ACTIONS) usage (argv[0])
+#define check_flags(a) \
+ if (a & (DL_FL_TRY|DL_FL_UNLOCK|DL_FL_UNLINK)) \
+ usage(argv[0])
int main (int argc, char **argv)
{
/* 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';
/*
* Deference a chain of symbolic links
- *
- * The final path is written to d.
*
+ * The final path is written to d.
*/
-
static int dotlock_deference_symlink (char *d, size_t l, const char *path)
{
struct stat sb;