Changeset 204 for trunk/dll/uudecode.c


Ignore:
Timestamp:
Jun 8, 2005, 7:57:53 AM (20 years ago)
Author:
root
Message:

Drop unused code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/uudecode.c

    r195 r204  
    1010
    1111  06 Jun 05 SHL Indent -i2
     12  06 Jun 05 SHL Drop unused code
    1213
    1314***********************************************************************/
     
    111112  }
    112113
    113 //  chmod(dest,mode);
    114 
    115114  ret = 1;
    116   if (decode(in, out))
    117   {
    118 //    saymsg(MB_ENTER,HWND_DESKTOP,"UUD error","File \"%s\" is short.",filename);
    119     //    ret = -1;
    120   }
    121   if (!fgets(buf, sizeof(buf), in) || strcmp(buf, "end\n"))
    122   {
    123 //    saymsg(MB_ENTER,HWND_DESKTOP,"UUD error","No end line or garbage at end of \"%s\"",
    124     //           filename);
    125     //    ret = -1;
    126   }
     115  decode(in, out);
     116
     117  fgets(buf, sizeof(buf), in);
     118
    127119  fclose(in);
    128120  fclose(out);
     
    167159static void outdec(char *p, FILE * f, int n)
    168160{
    169   int c1, c2, c3;
    170 
    171   c1 = DEC(*p) << 2 | DEC(p[1]) >> 4;
    172   c2 = DEC(p[1]) << 4 | DEC(p[2]) >> 2;
     161  INT c1, c2, c3;
     162
     163  c1 = DEC(*p) << 2 | (UINT)DEC(p[1]) >> 4;
     164  c2 = DEC(p[1]) << 4 | (UINT)DEC(p[2]) >> 2;
    173165  c3 = DEC(p[2]) << 6 | DEC(p[3]);
    174166  if (n >= 1)
Note: See TracChangeset for help on using the changeset viewer.