summaryrefslogtreecommitdiff
path: root/usr/src/cmd/pack/pack.c
diff options
context:
space:
mode:
authorcf46844 <none@none>2005-07-21 13:28:08 -0700
committercf46844 <none@none>2005-07-21 13:28:08 -0700
commita77d64af7813dad3dad148a9974e0ec7b80d1f43 (patch)
tree92adcc4e9a3fcab74ff8aaf3416d02180538caff /usr/src/cmd/pack/pack.c
parent92ed17828163bd22e8650252460319b94ef9aa74 (diff)
downloadillumos-joyent-a77d64af7813dad3dad148a9974e0ec7b80d1f43.tar.gz
6269771 gcc and cmd/dd don't get along
6271004 gcc and cmd/compress don't get along 6272010 gcc and cmd/mkdir don't get along 6272024 gcc and cmd/mv don't get along 6272070 gcc and cmd/pack don't get along 6272101 gcc and cmd/pr don't get along 6272750 gcc and cmd/renice don't get along
Diffstat (limited to 'usr/src/cmd/pack/pack.c')
-rw-r--r--usr/src/cmd/pack/pack.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr/src/cmd/pack/pack.c b/usr/src/cmd/pack/pack.c
index 502670e670..fd67a70a3c 100644
--- a/usr/src/cmd/pack/pack.c
+++ b/usr/src/cmd/pack/pack.c
@@ -20,15 +20,14 @@
* CDDL HEADER END
*/
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Huffman encoding program
@@ -127,6 +126,7 @@ static int mv_xattrs(int, int, char *, int);
/* gather character frequency statistics */
/* return 1 if successful, 0 otherwise */
+int
input(char *source)
{
register int i;
@@ -145,6 +145,7 @@ input(char *source)
/* encode the current file */
/* return 1 if successful, 0 otherwise */
+int
output(char *source)
{
int c, i, inleft;
@@ -341,6 +342,7 @@ packfile(char *source)
return (output(source));
}
+int
main(int argc, char *argv[])
{
extern int optind;