Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/dist/pdisk More c89 prototypes, mostly just filling in void ...



details:   https://anonhg.NetBSD.org/src/rev/df93ff88590a
branches:  trunk
changeset: 778365:df93ff88590a
user:      he <he%NetBSD.org@localhost>
date:      Fri Mar 23 14:49:55 2012 +0000

description:
More c89 prototypes, mostly just filling in void where needed.

diffstat:

 dist/pdisk/errors.c |  2 +-
 dist/pdisk/io.c     |  2 +-
 dist/pdisk/pdisk.c  |  8 ++++----
 3 files changed, 6 insertions(+), 6 deletions(-)

diffs (63 lines):

diff -r 5d97c62f7eaf -r df93ff88590a dist/pdisk/errors.c
--- a/dist/pdisk/errors.c       Fri Mar 23 14:46:05 2012 +0000
+++ b/dist/pdisk/errors.c       Fri Mar 23 14:49:55 2012 +0000
@@ -92,7 +92,7 @@
 
 
 void
-do_help()
+do_help(void)
 {
     printf("\t%s [-h|--help]\n", program_name);
     printf("\t%s [-v|--version]\n", program_name);
diff -r 5d97c62f7eaf -r df93ff88590a dist/pdisk/io.c
--- a/dist/pdisk/io.c   Fri Mar 23 14:46:05 2012 +0000
+++ b/dist/pdisk/io.c   Fri Mar 23 14:49:55 2012 +0000
@@ -96,7 +96,7 @@
 // Routines
 //
 int
-my_getch()
+my_getch(void)
 {
     if (unget_count > 0) {
        return (unget_buf[--unget_count]);
diff -r 5d97c62f7eaf -r df93ff88590a dist/pdisk/pdisk.c
--- a/dist/pdisk/pdisk.c        Fri Mar 23 14:46:05 2012 +0000
+++ b/dist/pdisk/pdisk.c        Fri Mar 23 14:49:55 2012 +0000
@@ -226,7 +226,7 @@
 
 
 void
-print_top_notes()
+print_top_notes(void)
 {
     printf("Notes:\n");
     printf("  Disks have fake names of the form /dev/scsi<bus>.<id>\n");
@@ -239,7 +239,7 @@
 
 
 void
-interact()
+interact(void)
 {
     char *name;
     int command;
@@ -504,7 +504,7 @@
 
 
 void
-print_edit_notes()
+print_edit_notes(void)
 {
     printf("Notes:\n");
     printf("  Base and length fields are blocks, which vary in size between media.\n");
@@ -958,7 +958,7 @@
 
 
 void
-print_expert_notes()
+print_expert_notes(void)
 {
     printf("Notes:\n");
     printf("  The expert commands are for low level and experimental features.\n");



Home | Main Index | Thread Index | Old Index