svn commit: samba r24783 - in branches: SAMBA_3_2/source/libgpo SAMBA_3_2/source/utils SAMBA_3_2_0/source/libgpo SAMBA_3_2_0/source/utils

gd at samba.org gd at samba.org
Wed Aug 29 14:08:30 GMT 2007


Author: gd
Date: 2007-08-29 14:08:29 +0000 (Wed, 29 Aug 2007)
New Revision: 24783

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=24783

Log:
Remove unused off_t type.

Guenther

Modified:
   branches/SAMBA_3_2/source/libgpo/gpo_filesync.c
   branches/SAMBA_3_2/source/utils/net_rpc_printer.c
   branches/SAMBA_3_2_0/source/libgpo/gpo_filesync.c
   branches/SAMBA_3_2_0/source/utils/net_rpc_printer.c


Changeset:
Modified: branches/SAMBA_3_2/source/libgpo/gpo_filesync.c
===================================================================
--- branches/SAMBA_3_2/source/libgpo/gpo_filesync.c	2007-08-29 13:56:52 UTC (rev 24782)
+++ branches/SAMBA_3_2/source/libgpo/gpo_filesync.c	2007-08-29 14:08:29 UTC (rev 24783)
@@ -44,7 +44,6 @@
 	char *data = NULL;
 	static int io_bufsize = 64512;
 	int read_size = io_bufsize;
-	off_t start = 0;
 	off_t nread = 0;
 
 	if ((fnum = cli_open(cli, nt_path, O_RDONLY, DENY_NONE)) == -1) {
@@ -64,7 +63,7 @@
 
 	while (1) {
 
-		int n = cli_read(cli, fnum, data, nread + start, read_size);
+		int n = cli_read(cli, fnum, data, nread, read_size);
 
 		if (n <= 0)
 			break;

Modified: branches/SAMBA_3_2/source/utils/net_rpc_printer.c
===================================================================
--- branches/SAMBA_3_2/source/utils/net_rpc_printer.c	2007-08-29 13:56:52 UTC (rev 24782)
+++ branches/SAMBA_3_2/source/utils/net_rpc_printer.c	2007-08-29 14:08:29 UTC (rev 24783)
@@ -333,7 +333,6 @@
 	static int io_bufsize = 64512;
 	int read_size = io_bufsize;
 	char *data = NULL;
-	off_t start = 0;
 	off_t nread = 0;
 
 
@@ -401,14 +400,14 @@
 
 		/* copying file */
 		int n, ret;
-		n = cli_read(cli_share_src, fnum_src, data, nread + start, 
+		n = cli_read(cli_share_src, fnum_src, data, nread, 
 				read_size);
 
 		if (n <= 0)
 			break;
 
 		ret = cli_write(cli_share_dst, fnum_dst, 0, data, 
-			nread + start, n);
+			nread, n);
 
 		if (n != ret) {
 			d_fprintf(stderr, "Error writing file: %s\n", 

Modified: branches/SAMBA_3_2_0/source/libgpo/gpo_filesync.c
===================================================================
--- branches/SAMBA_3_2_0/source/libgpo/gpo_filesync.c	2007-08-29 13:56:52 UTC (rev 24782)
+++ branches/SAMBA_3_2_0/source/libgpo/gpo_filesync.c	2007-08-29 14:08:29 UTC (rev 24783)
@@ -44,7 +44,6 @@
 	char *data = NULL;
 	static int io_bufsize = 64512;
 	int read_size = io_bufsize;
-	off_t start = 0;
 	off_t nread = 0;
 
 	if ((fnum = cli_open(cli, nt_path, O_RDONLY, DENY_NONE)) == -1) {
@@ -64,7 +63,7 @@
 
 	while (1) {
 
-		int n = cli_read(cli, fnum, data, nread + start, read_size);
+		int n = cli_read(cli, fnum, data, nread, read_size);
 
 		if (n <= 0)
 			break;

Modified: branches/SAMBA_3_2_0/source/utils/net_rpc_printer.c
===================================================================
--- branches/SAMBA_3_2_0/source/utils/net_rpc_printer.c	2007-08-29 13:56:52 UTC (rev 24782)
+++ branches/SAMBA_3_2_0/source/utils/net_rpc_printer.c	2007-08-29 14:08:29 UTC (rev 24783)
@@ -333,7 +333,6 @@
 	static int io_bufsize = 64512;
 	int read_size = io_bufsize;
 	char *data = NULL;
-	off_t start = 0;
 	off_t nread = 0;
 
 
@@ -401,14 +400,14 @@
 
 		/* copying file */
 		int n, ret;
-		n = cli_read(cli_share_src, fnum_src, data, nread + start, 
+		n = cli_read(cli_share_src, fnum_src, data, nread, 
 				read_size);
 
 		if (n <= 0)
 			break;
 
 		ret = cli_write(cli_share_dst, fnum_dst, 0, data, 
-			nread + start, n);
+			nread, n);
 
 		if (n != ret) {
 			d_fprintf(stderr, "Error writing file: %s\n", 



More information about the samba-cvs mailing list