git: f863f39636dc - main - pnpinfo: Remove __P

From: Warner Losh <imp_at_FreeBSD.org>
Date: Sat, 18 Nov 2023 04:06:21 UTC
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=f863f39636dcb007e977840b0a8d0e796de50007

commit f863f39636dcb007e977840b0a8d0e796de50007
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2023-11-18 03:46:20 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2023-11-18 04:04:59 +0000

    pnpinfo: Remove __P
    
    We don't need to compile on a K&R compiler (and we've long ago lost the
    ability to do so). It's not even clear if it ever worked with a pure K&R
    compiler, but maybe it once did...
    
    Sponsored by:           Netflix
---
 contrib/pnpinfo/pnpinfo.c | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/contrib/pnpinfo/pnpinfo.c b/contrib/pnpinfo/pnpinfo.c
index e13ea0d99f57..4ec99b3b27e1 100644
--- a/contrib/pnpinfo/pnpinfo.c
+++ b/contrib/pnpinfo/pnpinfo.c
@@ -50,8 +50,8 @@ __FBSDID("$FreeBSD$");
 void
 pnp_write(int d, u_char r)
 {
-    outb (_PNP_ADDRESS, d);
-    outb (_PNP_WRITE_DATA, r);
+    outb(_PNP_ADDRESS, d);
+    outb(_PNP_WRITE_DATA, r);
 }
 
 /* The READ_DATA port that we are using currently */
@@ -74,14 +74,14 @@ pnp_readw(int d)
 
 int logdevs=0;
 
-void DELAY __P((int i));
-void send_Initiation_LFSR();
-int get_serial __P((u_char *data));
-int get_resource_info __P((u_char *buffer, int len));
-int handle_small_res __P((u_char *resinfo, int item, int len));
-void handle_large_res __P((u_char *resinfo, int item, int len));
-void dump_resdata __P((u_char *data, int csn));
-int isolation_protocol();
+void DELAY(int i);
+void send_Initiation_LFSR(void);
+int get_serial(u_char *data);
+int get_resource_info(u_char *buffer, int len);
+int handle_small_res(u_char *resinfo, int item, int len);
+void handle_large_res(u_char *resinfo, int item, int len);
+void dump_resdata(u_char *data, int csn);
+int isolation_protocol(void);
 
 
 /*
@@ -89,7 +89,7 @@ int isolation_protocol();
  * This function busy-waits.
  */
 void
-DELAY (int i)
+DELAY(int i)
 {
     struct timeval t;
     long start, stop;
@@ -235,7 +235,7 @@ report_dma_info(int x)
 
 
 void
-report_memory_info (int x)
+report_memory_info(int x)
 {
     if (x & 0x1)
 	printf ("Memory Range: Writeable\n");