/*
- * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
+ * Copyright (C) 1996-2018 The Squid Software Foundation and contributors
*
* Squid software is distributed under GPLv2+ license and includes
* contributions from numerous individuals and organizations.
if (argc < 2) {
printf("Error: usage: %s <logfile>\n", argv[0]);
- exit(1);
+ exit(EXIT_FAILURE);
}
fp = fopen(argv[1], "a");
if (fp == NULL) {
perror("fopen");
- exit(1);
+ exit(EXIT_FAILURE);
}
setbuf(stdout, NULL);
/* XXX stderr should not be closed, but in order to support squid must be
fp = fopen(argv[1], "a");
if (fp == NULL) {
perror("fopen");
- exit(1);
+ exit(EXIT_FAILURE);
}
fprintf(fp, "%s", buf + 1);
} else {
perror("fprintf");
- exit(1);
+ exit(EXIT_FAILURE);
}
}
}
fp = fopen(argv[1], "a");
if (fp == NULL) {
perror("fopen");
- exit(1);
+ exit(EXIT_FAILURE);
}
break;
case 'T':
}
fclose(fp);
fp = NULL;
- exit(0);
+ return EXIT_SUCCESS;
}