[gnutls-dev]minor patch

Mike Castle dalgoda at ix.netcom.com
Tue Oct 8 15:20:02 CEST 2002


Declare all variables before code for older compilers.

patch -p1 << \EOF
diff -ru gnutls-0.5.8.orig/lib/gnutls_buffers.c gnutls-0.5.8/lib/gnutls_buffers.c
--- gnutls-0.5.8.orig/lib/gnutls_buffers.c	2002-09-16 09:53:31.000000000 -0700
+++ gnutls-0.5.8/lib/gnutls_buffers.c	2002-10-05 17:39:02.000000000 -0700
@@ -202,13 +202,15 @@
 	size_t left;
 	ssize_t i=0;
 	char *ptr = iptr;
+
 #ifdef READ_DEBUG
 	int j,x, sum=0;
 #endif
-	session->internals.direction = 0;
 
 	gnutls_transport_ptr fd = session->internals.transport_recv_ptr;
 
+	session->internals.direction = 0;
+
 	left = sizeOfPtr;
 	while (left > 0) {
 		
EOF
-- 
     Mike Castle      dalgoda at ix.netcom.com      www.netcom.com/~dalgoda/
    We are all of us living in the shadow of Manhattan.  -- Watchmen
fatal ("You are in a maze of twisty compiler features, all different"); -- gcc




More information about the Gnutls-devel mailing list