remove warnings

This commit is contained in:
leitner 2003-02-27 17:26:39 +00:00
parent b4f14ed6f7
commit 71deab2eec
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ int fmt_urlencoded_sa(stralloc *sa,const char* src,unsigned int len) {
char dest[3] = {'%'}; char dest[3] = {'%'};
dest[1]=tohex(s[i]>>4); dest[1]=tohex(s[i]>>4);
dest[2]=tohex(s[i]&15); dest[2]=tohex(s[i]&15);
if (!stralloc_catb(sa, &dest, 3)) return 0; if (!stralloc_catb(sa, dest, 3)) return 0;
} else { } else {
if (!stralloc_catb(sa, s+i, 1)) return 0; if (!stralloc_catb(sa, s+i, 1)) return 0;
} }

View File

@ -30,7 +30,7 @@ int fmt_uuencoded_sa(stralloc* sa,const char* src,unsigned int len) {
dest[2]=enc((tmp>>(1*6))&077); dest[2]=enc((tmp>>(1*6))&077);
dest[3]=enc(tmp&077); dest[3]=enc(tmp&077);
s+=3; s+=3;
if (!stralloc_catb(sa,&dest,4)) return 0; if (!stralloc_catb(sa,dest,4)) return 0;
} }
if (!stralloc_catb(sa,"\n",1)) return 0; if (!stralloc_catb(sa,"\n",1)) return 0;
} }