Browse Source

oops

master
Felix von Leitner 21 years ago
parent
commit
40fda89f89
  1. 4
      buffer.h
  2. 1
      socket/fmt_ip6.c
  3. 3
      t.c

4
buffer.h

@ -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

1
socket/fmt_ip6.c

@ -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) +

3
t.c

@ -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