remove dead store

master
leitner 10 years ago
parent c523dcbc48
commit fce165fdcb

@ -53,7 +53,6 @@ int dns_domain_fromdot(char **out,const char *buf,size_t n)
name[namelen++] = labellen;
byte_copy(name + namelen,labellen,label);
namelen += labellen;
labellen = 0;
}
if (namelen + 1 > sizeof name) return 0;

@ -5,15 +5,14 @@ int64 iob_write(int64 s,io_batch* b,io_write_callback cb) {
uint64 total;
int64 sent;
long i;
int thatsit;
if (b->bytesleft==0) return 0;
last=(iob_entry*)(((char*)array_start(&b->b))+array_bytes(&b->b));
total=0;
if (!(e=array_get(&b->b,sizeof(iob_entry),b->next)))
return -3; /* can't happen error */
thatsit=0;
for (i=0; e+i<last; ++i) {
int thatsit;
if (!e[i].n) continue;
if (e[i].type==FROMFILE)
sent=io_mmapwritefile(s,e[i].fd,e[i].offset,e[i].n,cb);

@ -9,7 +9,6 @@ int str_diff(const char* a, const char* b) {
register const unsigned char* s=(const unsigned char*)a;
register const unsigned char* t=(const unsigned char*)b;
register int j;
j=0;
for (;;) {
if ((j=(*s-*t))) break; if (!*t) break; ++s; ++t;
if ((j=(*s-*t))) break; if (!*t) break; ++s; ++t;

@ -37,7 +37,7 @@ dontescape:
if (written>((size_t)-1)/2) return (size_t)-1;
}
if (linelen) {
if (dest) dest[written]='\n'; ++written; linelen=0;
if (dest) dest[written]='\n'; ++written;
}
return written;
}

Loading…
Cancel
Save