OSDN Git Service

merged changing from lha-1.14f to lha-1.14i.
authorarai <arai@6a8cc165-1e22-0410-a132-eb4e3f353aba>
Mon, 29 Jan 2001 18:21:27 +0000 (18:21 +0000)
committerarai <arai@6a8cc165-1e22-0410-a132-eb4e3f353aba>
Mon, 29 Jan 2001 18:21:27 +0000 (18:21 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@23 6a8cc165-1e22-0410-a132-eb4e3f353aba

src/crcio.c
src/dhuf.c

index 4c38dda..cd0cd1b 100644 (file)
@@ -108,7 +108,7 @@ putcode(n, x)                       /* Write rightmost n bits of x */
                subbitbuf += x >> (USHRT_BIT - bitcount);
                x <<= bitcount;
                if (compsize < origsize) {
-            if (fwrite(&subbitbuf, 1, 1, outfile) == 0) {
+                       if (fwrite(&subbitbuf, 1, 1, outfile) == 0) {
                                /* fileerror(WTERR, outfile); */
                            fatal_error("Write error in crcio.c(putcode)\n");
                                /* exit(errno); */
@@ -136,7 +136,7 @@ putbits(n, x)                       /* Write rightmost n bits of x */
                subbitbuf += x >> (USHRT_BIT - bitcount);
                x <<= bitcount;
                if (compsize < origsize) {
-            if (fwrite(&subbitbuf, 1, 1, outfile) == 0) {
+                       if (fwrite(&subbitbuf, 1, 1, outfile) == 0) {
                                /* fileerror(WTERR, outfile); */
                            fatal_error("Write error in crcio.c(putbits)\n");
                                /* exit(errno); */
index 8865b96..8bf8cb6 100644 (file)
@@ -239,7 +239,7 @@ make_new_node(p)
 /* ------------------------------------------------------------------------ */
 static void
 encode_c_dyn(c)
-       int             c;
+       unsigned int    c;
 {
        unsigned int    bits;
        int             p, d, cnt;
@@ -327,7 +327,7 @@ decode_p_dyn( /* void */ )
 /* ------------------------------------------------------------------------ */
 void
 output_dyn(code, pos)
-       int             code;
+       unsigned int    code;
        unsigned int    pos;
 {
        encode_c_dyn(code);
@@ -342,6 +342,8 @@ encode_end_dyn( /* void */ )
 {
        putcode(7, 0);
 }
+
 /* Local Variables: */
-/* tab-width : 4 */
+/* mode:c */
+/* tab-width:4 */
 /* End: */