equal
deleted
inserted
replaced
47 struct stat st; |
47 struct stat st; |
48 int fd; |
48 int fd; |
49 |
49 |
50 if (argc == 2) { |
50 if (argc == 2) { |
51 if (!strcmp (argv[1], "-h")) { |
51 if (!strcmp (argv[1], "-h")) { |
52 printf ("Usage: %s [-f|]\n", argv[0]); |
52 printf ("Usage: %s [-f|-h]\n", argv[0]); |
53 printf ("Report bugs to mbroeker@largo.homelinux.org\n"); |
53 printf ("Report bugs to mbroeker@largo.homelinux.org\n"); |
54 exit (EXIT_SUCCESS); |
54 exit (EXIT_SUCCESS); |
55 } else if (!strcmp (argv[1], "-f")) { |
55 } else if (!strcmp (argv[1], "-f")) { |
56 if (unlink (LOCK_FILE) != 0) |
56 if (unlink (LOCK_FILE) != 0) |
57 exit (EXIT_FAILURE); |
57 exit (EXIT_FAILURE); |