summaryrefslogtreecommitdiff
path: root/usr/src/cmd/filesync
diff options
context:
space:
mode:
authorjwahlig <none@none>2005-08-17 12:41:49 -0700
committerjwahlig <none@none>2005-08-17 12:41:49 -0700
commit3aceb801c46d1081eea8772ecb3c0d61d6ebd1e8 (patch)
tree9d203b78be8708bd982c5b0de56f250ba1a4f843 /usr/src/cmd/filesync
parent052b6e8a13e1fb4be51ba482db6bb2e9833fa717 (diff)
downloadillumos-gate-3aceb801c46d1081eea8772ecb3c0d61d6ebd1e8.tar.gz
6271051 gcc and cmd/filesync don't get along
Diffstat (limited to 'usr/src/cmd/filesync')
-rw-r--r--usr/src/cmd/filesync/main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/src/cmd/filesync/main.c b/usr/src/cmd/filesync/main.c
index b12e7e47fc..1fe89a379a 100644
--- a/usr/src/cmd/filesync/main.c
+++ b/usr/src/cmd/filesync/main.c
@@ -20,7 +20,7 @@
* CDDL HEADER END
*/
/*
- * Copyright 1995-2003 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -117,7 +117,7 @@ static int num_restrs = 0;
* implements the features. Only file names are really processed
* in this routine.
*/
-void
+int
main(int argc, char **argv)
{ int i;
int c;
@@ -162,7 +162,7 @@ main(int argc, char **argv)
dbg_usage();
exit(ERR_INVAL);
}
- opt_debug |= strtol(optarg, (char **) NULL, 0);
+ opt_debug |= strtol(optarg, (char **)NULL, 0);
break;
case 'E': /* error simulation */
@@ -379,7 +379,7 @@ main(int argc, char **argv)
/* all done */
cleanup(0);
- exit(errs);
+ return (errs);
}