Browse Source

oops

master
Felix von Leitner 19 years ago
parent
commit
40fda89f89
3 changed files with 5 additions and 3 deletions
  1. +3
    -1
      buffer.h
  2. +0
    -1
      socket/fmt_ip6.c
  3. +2
    -1
      t.c

+ 3
- 1
buffer.h View File

@@ -5,11 +5,13 @@ typedef struct buffer {
char *x;
unsigned int p;
unsigned int n;
unsigned int a;
int fd;
int (*op)();
} buffer;

#define BUFFER_INIT(op,fd,buf,len) { (buf), 0, (len), (fd), (op) }
#define BUFFER_INIT(op,fd,buf,len) { (buf), 0, (len), 0, (fd), (op) }
#define BUFFER_INIT_READ(op,fd,buf,len) { (buf), 0, 0, (len), (fd), (op) }
#define BUFFER_INSIZE 8192
#define BUFFER_OUTSIZE 8192



+ 0
- 1
socket/fmt_ip6.c View File

@@ -16,7 +16,6 @@ unsigned int fmt_ip6(char *s,const char ip[16])
if (j==12 && ip6_isv4mapped(ip)) {
temp=ip4_fmt(s,ip+12);
len+=temp;
if (s) s+=temp;
break;
}
temp = ((unsigned long) (unsigned char) ip[j] << 8) +


+ 2
- 1
t.c View File

@@ -20,7 +20,8 @@ int main(int argc,char* argv[]) {
buffer_flush(buffer_1small);
#endif

buf[fmt_xlong(buf,0)]=0;
buf[0]=0;
buf[fmt_8long(buf,0)]=0;
puts(buf);
rdtscl(a);
c=str_len(buf);


Loading…
Cancel
Save