]> arthur.barton.de Git - netatalk.git/commitdiff
Removed duplicate bprint() function (see util/bprint.c).
authorsrittau <srittau>
Wed, 15 Aug 2001 01:41:05 +0000 (01:41 +0000)
committersrittau <srittau>
Wed, 15 Aug 2001 01:41:05 +0000 (01:41 +0000)
libatalk/atp/Makefile.am
libatalk/atp/atp_bprint.c [deleted file]

index adbcfbcc18c550a876a8a43e89e9f87c97291aac..fe553b0d07901f40b0f3d1143af3a296d0e3fa1e 100644 (file)
@@ -2,6 +2,6 @@
 
 noinst_LTLIBRARIES = libatp.la
 
-libatp_la_SOURCES = atp_bprint.c atp_bufs.c atp_close.c atp_open.c atp_packet.c atp_rreq.c atp_rresp.c atp_rsel.c atp_sreq.c atp_sresp.c 
+libatp_la_SOURCES = atp_bufs.c atp_close.c atp_open.c atp_packet.c atp_rreq.c atp_rresp.c atp_rsel.c atp_sreq.c atp_sresp.c 
 
 noinst_HEADERS = atp_internals.h
diff --git a/libatalk/atp/atp_bprint.c b/libatalk/atp/atp_bprint.c
deleted file mode 100644 (file)
index 06e7b08..0000000
+++ /dev/null
@@ -1,69 +0,0 @@
-/*
- * $Id: atp_bprint.c,v 1.4 2001-06-29 14:14:46 rufustfirefly Exp $
- *
- * Copyright (c) 1990,1991 Regents of The University of Michigan.
- * All Rights Reserved.
- *
- * Permission to use, copy, modify, and distribute this software and
- * its documentation for any purpose and without fee is hereby granted,
- * provided that the above copyright notice appears in all copies and
- * that both that copyright notice and this permission notice appear
- * in supporting documentation, and that the name of The University
- * of Michigan not be used in advertising or publicity pertaining to
- * distribution of the software without specific, written prior
- * permission. This software is supplied as is without expressed or
- * implied warranties of any kind.
- *
- *     Research Systems Unix Group
- *     The University of Michigan
- *     c/o Mike Clark
- *     535 W. William Street
- *     Ann Arbor, Michigan
- *     +1-313-763-0525
- *     netatalk@itd.umich.edu
- */
-
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif /* HAVE_CONFIG_H */
-
-#define BPLEN  48
-#include <stdio.h>
-#include <ctype.h>
-#include <string.h>
-char   hexdig[] = "0123456789abcdef";
-
-void bprint( data, len )
-    char       *data;
-    int                len;
-{
-    char       out[ BPLEN ];
-    int                i = 0;
-
-    memset( out, 0, BPLEN );
-    for ( ;; ) {
-       if ( len < 1 ) {
-           printf( "\t%s\n", ( i == 0 ) ? "(end)" : out );
-           break;
-       }
-
-       if ( isgraph( (unsigned char)*data )) {
-           out[ i ] = ' ';
-           out[ i+1 ] = *data;
-       } else {
-           out[ i ] = hexdig[ ( *data & 0xf0 ) >> 4 ];
-           out[ i+1 ] = hexdig[ *data & 0x0f ];
-       }
-       i += 2;
-       len--;
-       data++;
-
-       if ( i > BPLEN - 2 ) {
-           printf( "\t%s\n", out );
-           memset( out, 0, BPLEN );
-           i = 0;
-           continue;
-       }
-       out[ i++ ] = ' ';
-    }
-}