Added prototype for uudecode_step
authorJeffrey Stedfast <fejj@helixcode.com>
Wed, 5 Jul 2000 21:24:53 +0000 (21:24 +0000)
committerJeffrey Stedfast <fejj@src.gnome.org>
Wed, 5 Jul 2000 21:24:53 +0000 (21:24 +0000)
2000-07-05  Jeffrey Stedfast  <fejj@helixcode.com>

* camel-mime-utils.h: Added prototype for uudecode_step

* camel-mime-utils.c (uudecode_step): Cleaned up some junk that
should have been cleaned up when debugging printf's were taken out.

camel/ChangeLog
camel/camel-mime-utils.c
camel/camel-mime-utils.h

index 8d41999..bf6eaf7 100644 (file)
@@ -1,3 +1,10 @@
+2000-07-05  Jeffrey Stedfast  <fejj@helixcode.com>
+
+       * camel-mime-utils.h: Added prototype for uudecode_step
+
+       * camel-mime-utils.c (uudecode_step): Cleaned up some junk that
+       should have been cleaned up when debugging printf's were taken out.
+
 2000-07-05  Ettore Perazzoli  <ettore@helixcode.com>
 
        * providers/mbox/camel-mbox-summary.c (camel_mbox_summary_sync):
index e30c24b..f2349b7 100644 (file)
@@ -2,6 +2,7 @@
  *  Copyright (C) 2000 Helix Code Inc.
  *
  *  Authors: Michael Zucchi <notzed@helixcode.com>
+ *           Jeffrey Stedfast <fejj@helixcode.com>
  *
  *  This program is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Library General Public License
@@ -481,11 +482,8 @@ uudecode_step (unsigned char *in, int len, unsigned char *out, int *state, guint
                                        *outptr++ = CAMEL_UUDECODE_CHAR (b1) << 4 | CAMEL_UUDECODE_CHAR (b2) >> 2;
                                        *outptr++ = CAMEL_UUDECODE_CHAR (b2) << 6 | CAMEL_UUDECODE_CHAR (b3);
                                } else {
-                                       int j = 0;
-                                       
                                        if (*uulen >= 1) {
                                                *outptr++ = CAMEL_UUDECODE_CHAR (b0) << 2 | CAMEL_UUDECODE_CHAR (b1) >> 4;
-                                               j++;
                                        }
                                        if (*uulen >= 2) {
                                                *outptr++ = CAMEL_UUDECODE_CHAR (b1) << 4 | CAMEL_UUDECODE_CHAR (b2) >> 2;
index 5f71524..8f00eb0 100644 (file)
@@ -2,6 +2,7 @@
  *  Copyright (C) 2000 Helix Code Inc.
  *
  *  Authors: Michael Zucchi <notzed@helixcode.com>
+ *           Jeffrey Stedfast <fejj@helixcode.com>
  *
  *  This program is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Library General Public License
@@ -158,6 +159,8 @@ int base64_decode_step(unsigned char *in, int len, unsigned char *out, int *stat
 int base64_encode_step(unsigned char *in, int len, unsigned char *out, int *state, int *save);
 int base64_encode_close(unsigned char *in, int inlen, unsigned char *out, int *state, int *save);
 
+int uudecode_step (unsigned char *in, int len, unsigned char *out, int *state, guint32 *save, char *uulen);
+
 int quoted_decode_step(unsigned char *in, int len, unsigned char *out, int *savestate, int *saveme);
 
 int quoted_encode_step(unsigned char *in, int len, unsigned char *out, int *state, int *save);