summaryrefslogtreecommitdiff
path: root/usr/src/cmd/allocate
diff options
context:
space:
mode:
authorpaulson <none@none>2005-08-22 11:44:52 -0700
committerpaulson <none@none>2005-08-22 11:44:52 -0700
commit7883e825152992a0f20c3f52f7c4bb902a56205c (patch)
tree501357402ede93ad79f39b1144125dcd9f8d400d /usr/src/cmd/allocate
parent689378828864261307402c292d53738db4d8ae8b (diff)
downloadillumos-joyent-7883e825152992a0f20c3f52f7c4bb902a56205c.tar.gz
6268943 cmd/allocate and gcc don't get along
6268950 cmd/audit[d] and gcc don't get along
Diffstat (limited to 'usr/src/cmd/allocate')
-rw-r--r--usr/src/cmd/allocate/audio_clean.c8
-rw-r--r--usr/src/cmd/allocate/mkdevalloc.c8
-rw-r--r--usr/src/cmd/allocate/mkdevmaps.c8
3 files changed, 16 insertions, 8 deletions
diff --git a/usr/src/cmd/allocate/audio_clean.c b/usr/src/cmd/allocate/audio_clean.c
index 2263b9f176..4447fdf012 100644
--- a/usr/src/cmd/allocate/audio_clean.c
+++ b/usr/src/cmd/allocate/audio_clean.c
@@ -19,9 +19,12 @@
*
* CDDL HEADER END
*/
-/* Copyright (c) 1991-2001 by Sun Microsystems, Inc. */
+/*
+ * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Use is subject to license terms.
+ */
-#pragma ident "%Z%%M% %I% %E% SMI"
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* audio_clean - Clear any residual data that may be residing in the in the
@@ -96,6 +99,7 @@ first_field(char *string, char *item)
*item = 0;
}
+int
main(int argc, char *argv[])
{
int err = 0;
diff --git a/usr/src/cmd/allocate/mkdevalloc.c b/usr/src/cmd/allocate/mkdevalloc.c
index 32d45cc732..50c58af3eb 100644
--- a/usr/src/cmd/allocate/mkdevalloc.c
+++ b/usr/src/cmd/allocate/mkdevalloc.c
@@ -20,7 +20,7 @@
* CDDL HEADER END
*/
/*
- * Copyright 1992-2003 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -125,8 +125,8 @@ static void initmem();
static int expandmem(int, void **, int);
static void no_memory(void);
-void
-main()
+int
+main(void)
{
(void) setlocale(LC_ALL, "");
(void) textdomain(TEXT_DOMAIN);
@@ -140,6 +140,8 @@ main()
dofloppy(); /* do floppy */
docd(); /* do cd */
+
+ return (0);
}
static void
diff --git a/usr/src/cmd/allocate/mkdevmaps.c b/usr/src/cmd/allocate/mkdevmaps.c
index 76d9ef9d95..f4167ebf2c 100644
--- a/usr/src/cmd/allocate/mkdevmaps.c
+++ b/usr/src/cmd/allocate/mkdevmaps.c
@@ -20,7 +20,7 @@
* CDDL HEADER END
*/
/*
- * Copyright 1992-2003 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -121,8 +121,8 @@ static void initmem();
static int expandmem(int, void **, int);
static void no_memory(void);
-void
-main()
+int
+main(void)
{
(void) setlocale(LC_ALL, "");
(void) textdomain(TEXT_DOMAIN);
@@ -133,6 +133,8 @@ main()
doaudio(); /* do audio */
dofloppy(); /* do floppy */
docd(); /* do cd */
+
+ return (0);
}
static void