git: 9front

Download patch

ref: 20379f3ea88cbef9a9822ee4eac83a1c911a72bd
parent: 990a7dca09091191a9f13e88d11fef9536b09160
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Feb 9 18:55:12 EST 2025

vnc: remove hexdump() function

--- a/sys/src/cmd/vnc/proto.c
+++ b/sys/src/cmd/vnc/proto.c
@@ -266,19 +266,6 @@
 }
 
 void
-hexdump(void *a, int n)
-{
-	uchar *p, *ep;
-
-	p = a;
-	ep = p+n;
-
-	for(; p<ep; p++) 
-		print("%.2ux ", *p);
-	print("\n");
-}
-
-void
 vncgobble(Vnc *v, long n)
 {
 	uchar buf[8192];
--- a/sys/src/cmd/vnc/vnc.h
+++ b/sys/src/cmd/vnc/vnc.h
@@ -141,8 +141,6 @@
 extern	void		vnclock(Vnc*);		/* for writing */
 extern	void		vncunlock(Vnc*);
 
-extern	void		hexdump(void*, int);
-
 /* implemented by clients of the io library */
 extern	void		vnchungup(Vnc*);
 
--