From c30868be5ebff6635b960bb8734ffd92d27d476b Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Sat, 22 Feb 2003 00:00:00 +0000 Subject: [PATCH] Plan 9 from Bell Labs 2003-02-22 --- port/devcap.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/port/devcap.c b/port/devcap.c index 80903ff832b030d31cecf3dc1863e7645f4bba95..bf830e70a90a5298bda6369e54318daac84f9ad2 100644 --- a/port/devcap.c +++ b/port/devcap.c @@ -105,6 +105,18 @@ capopen(Chan *c, int omode) return c; } +static char* +hashstr(uchar *hash) +{ + static char buf[256]; + int i; + + for(i = 0; i < Hashlen; i++) + sprint(buf+2*i, "%2.2ux", hash[i]); + buf[2*Hashlen] = 0; + return buf; +} + static Caphash* remcap(uchar *hash) {