Browse Source

- removed duplicate include for unistd.h

- minor indent
development
Andreas Romeyke 2 years ago
parent
commit
9d74604afb
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      src/checkit_tiff.c

+ 2
- 3
src/checkit_tiff.c View File

@ -19,7 +19,6 @@
#include <string.h>
#include <ctype.h>
#ifdef __unix__
#include <unistd.h>
#include <sys/stat.h>
#include <sys/types.h>
#else
@ -111,7 +110,7 @@ int main (int argc, char * argv[]) {
int c;
int flag_check_directory=UNFLAGGED;
int flag_use_memorymapped_io=UNFLAGGED;
while ((c = getopt (argc, argv, "chmdx:q")) != -1) {
while ((c = getopt(argc, argv, "chmdx:q")) != -1) {
switch (c)
{
case 'h': /* help */
@ -139,7 +138,7 @@ int main (int argc, char * argv[]) {
fprintf (stderr, "Option -%c requires an argument.\n", optopt);
return (-1);
}
else*/ if (isprint (optopt)) {
else*/ if (isprint(optopt)) {
fprintf (stderr, "Unknown option `-%c'.\n", optopt);
return (-1);
}


Loading…
Cancel
Save