summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2003-04-14 00:12:28 +0000
committerTim Potter <tpot@samba.org>2003-04-14 00:12:28 +0000
commit44fa3b90e0f8794dd1b94d12db920dc2149e6ecf (patch)
tree526e95bf9dae28aad124c16db608b4c8a6c40594
parent2fd025cee3197df334712332992f1425a06bd56b (diff)
downloadsamba-44fa3b90e0f8794dd1b94d12db920dc2149e6ecf.tar.gz
samba-44fa3b90e0f8794dd1b94d12db920dc2149e6ecf.tar.bz2
samba-44fa3b90e0f8794dd1b94d12db920dc2149e6ecf.zip
Merge removal of some unused functions. Commit mistakenly included with
new rpc echo pipe. (This used to be commit b7af3cda28cea859edf6266b6bd8da17a44c85eb)
-rw-r--r--source3/lib/util.c44
1 files changed, 0 insertions, 44 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c
index 4f564b332a..1bfbd6f5a0 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -1819,50 +1819,6 @@ enum remote_arch_types get_remote_arch(void)
return ra_type;
}
-
-void out_ascii(FILE *f, unsigned char *buf,int len)
-{
- int i;
- for (i=0;i<len;i++)
- fprintf(f, "%c", isprint(buf[i])?buf[i]:'.');
-}
-
-void out_data(FILE *f,char *buf1,int len, int per_line)
-{
- unsigned char *buf = (unsigned char *)buf1;
- int i=0;
- if (len<=0) {
- return;
- }
-
- fprintf(f, "[%03X] ",i);
- for (i=0;i<len;) {
- fprintf(f, "%02X ",(int)buf[i]);
- i++;
- if (i%(per_line/2) == 0) fprintf(f, " ");
- if (i%per_line == 0) {
- out_ascii(f,&buf[i-per_line ],per_line/2); fprintf(f, " ");
- out_ascii(f,&buf[i-per_line/2],per_line/2); fprintf(f, "\n");
- if (i<len) fprintf(f, "[%03X] ",i);
- }
- }
- if ((i%per_line) != 0) {
- int n;
-
- n = per_line - (i%per_line);
- fprintf(f, " ");
- if (n>(per_line/2)) fprintf(f, " ");
- while (n--) {
- fprintf(f, " ");
- }
- n = MIN(per_line/2,i%per_line);
- out_ascii(f,&buf[i-(i%per_line)],n); fprintf(f, " ");
- n = (i%per_line) - n;
- if (n>0) out_ascii(f,&buf[i-n],n);
- fprintf(f, "\n");
- }
-}
-
void print_asc(int level, const unsigned char *buf,int len)
{
int i;