rsynd-2.5.1 / authenticate.c patch

John E. Malmberg wb8tyw at qsl.net
Sun Jan 13 16:41:14 EST 2002


Sorry about the duplicate post of the batch.c patch.  MOZILLA and ISP 
network problems.

Platform: Compaq OpenVMS Alpha 7.3
Compiler: Compaq C T6.5

The type (char) was being used where the usage indicated (void) should 
be used.

The const qualifier was added to improve compiler efficiency.

-John
wb8tyw at qsl.network
Personal Opinion Only


EAGLE> type authenticate.gdiff
--- ref_src:authenticate.c      Sat Jan  5 13:27:01 2002
+++ lcl_src:authenticate.c      Sat Jan 12 21:58:20 2002
@@ -1,3 +1,4 @@
+/* Converted by prj_src:unix_c_to_vms_c.tpu AND 
PRJ_SRC:AUTHENTICATE.TPU on 12-JAN-2002 21:58:20.16 OPENVMS_AXP */
  /* -*- c-file-style: "linux"; -*-

     Copyright (C) 1998-2000 by Andrew Tridgell
@@ -24,7 +25,7 @@
  encode a buffer using base64 - simple and slow algorithm. null 
terminates the result.
 
***************************************************************************/
-static void base64_encode(char *buf, int len, char *out)
+static void base64_encode(const void *buf, int len, char *out)
  {
         char *b64 = 
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456
789+/";
         int bit_offset, byte_offset, idx, i;
@@ -49,7 +50,7 @@
  }

  /* create a 16 byte challenge buffer */
-static void gen_challenge(char *addr, char *challenge)
+static void gen_challenge(const char *addr, void *challenge)
  {
         char input[32];
         struct timeval tv;





More information about the rsync mailing list