* file named AUTHORS, in the root directory of this distribution.
*/
/*
- * $Id: versionsuffix.c,v 1.6 1998/07/04 00:18:28 oliva Exp $
+ * $Id: versionsuffix.c,v 1.9 2006/05/25 01:47:11 johnfranks Exp $
*
* prints the (possibly empty) suffix appended to amanda program names
*/
#include "amanda.h"
#include "version.h"
-int main()
+int main(int argc, char **argv);
+
+int main(int argc, char **argv)
{
- int fd;
+ safe_fd(-1, 0);
- for(fd = 3; fd < FD_SETSIZE; fd++) {
- /*
- * Make sure nobody spoofs us with a lot of extra open files
- * that would cause an open we do to get a very high file
- * descriptor, which in turn might be used as an index into
- * an array (e.g. an fd_set).
- */
- close(fd);
- }
+ (void)argc; /* Quiet unused parameter warning */
+ (void)argv; /* Quiet unused parameter warning */
set_pname("versionsuffix");