Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 130612 | Differences between
and this patch

Collapse All | Expand All

(-)cndrvcups-capt-1.50/pstocapt/filter/pstocapt.c (-2 / +3 lines)
Lines 361-366 Link Here
361
	int acro_util = 0;
361
	int acro_util = 0;
362
	int read_bytes;
362
	int read_bytes;
363
	BufList *bl = NULL;
363
	BufList *bl = NULL;
364
	BufList *ps_data_tail = NULL;
364
365
365
	while( (read_bytes = read_line(ifd, read_buf, DATA_BUF_SIZE - 1)) > 0 )
366
	while( (read_bytes = read_line(ifd, read_buf, DATA_BUF_SIZE - 1)) > 0 )
366
	{
367
	{
Lines 398-404 Link Here
398
		if( *ps_data == NULL )
399
		if( *ps_data == NULL )
399
			*ps_data = bl;
400
			*ps_data = bl;
400
		else
401
		else
401
			buflist_add_tail(*ps_data, bl);
402
			buflist_add_tail_fast(*ps_data, bl, &ps_data_tail);
402
403
403
		if( read_bytes > 0 )
404
		if( read_bytes > 0 )
404
		{
405
		{
Lines 477-483 Link Here
477
		if( *ps_data == NULL )
478
		if( *ps_data == NULL )
478
			*ps_data = bl;
479
			*ps_data = bl;
479
		else
480
		else
480
			buflist_add_tail(*ps_data, bl);
481
			buflist_add_tail_fast(*ps_data, bl, &ps_data_tail);
481
	}
482
	}
482
483
483
	return p_list;
484
	return p_list;
(-)cndrvcups-capt-1.50/pstocapt2/filter/pstocapt2.c (-2 / +3 lines)
Lines 641-646 Link Here
641
	int numcopies = -1;
641
	int numcopies = -1;
642
	int is_banner = 0;
642
	int is_banner = 0;
643
	char *p_read_buf;
643
	char *p_read_buf;
644
	BufList *ps_data_tail = NULL;
644
645
645
	while( (read_bytes = read_line(ifd, read_buf, DATA_BUF_SIZE - 1)) > 0 )
646
	while( (read_bytes = read_line(ifd, read_buf, DATA_BUF_SIZE - 1)) > 0 )
646
	{
647
	{
Lines 677-683 Link Here
677
		if( *ps_data == NULL )
678
		if( *ps_data == NULL )
678
			*ps_data = bl;
679
			*ps_data = bl;
679
		else
680
		else
680
			buflist_add_tail(*ps_data, bl);
681
			buflist_add_tail_fast(*ps_data, bl, &ps_data_tail);
681
682
682
		if( read_bytes > 0 )
683
		if( read_bytes > 0 )
683
		{
684
		{
Lines 772-778 Link Here
772
		if( *ps_data == NULL )
773
		if( *ps_data == NULL )
773
			*ps_data = bl;
774
			*ps_data = bl;
774
		else
775
		else
775
			buflist_add_tail(*ps_data, bl);
776
			buflist_add_tail_fast(*ps_data, bl, &ps_data_tail);
776
777
777
		if( read_bytes > 0 )
778
		if( read_bytes > 0 )
778
		{
779
		{
(-)cndrvcups-capt-1.50/pstocapt3/filter/pstocapt3.c (-1 / +3 lines)
Lines 762-767 Link Here
762
	int numcopies = -1;
762
	int numcopies = -1;
763
	int is_banner = 0;
763
	int is_banner = 0;
764
	char *p_read_buf;
764
	char *p_read_buf;
765
	BufList *ps_data_tail = NULL;
765
766
766
	while( (read_bytes = read_line(ifd, read_buf, DATA_BUF_SIZE - 1)) > 0 )
767
	while( (read_bytes = read_line(ifd, read_buf, DATA_BUF_SIZE - 1)) > 0 )
767
	{
768
	{
Lines 798-804 Link Here
798
		if( *ps_data == NULL )
799
		if( *ps_data == NULL )
799
			*ps_data = bl;
800
			*ps_data = bl;
800
		else
801
		else
801
			buflist_add_tail(*ps_data, bl);
802
			buflist_add_tail_fast(*ps_data, bl, &ps_data_tail);
802
803
803
		if( read_bytes > 0 )
804
		if( read_bytes > 0 )
804
		{
805
		{
Lines 894-899 Link Here
894
			*ps_data = bl;
895
			*ps_data = bl;
895
		else
896
		else
896
			buflist_add_tail(*ps_data, bl);
897
			buflist_add_tail(*ps_data, bl);
898
			buflist_add_tail_fast(*ps_data, bl, &ps_data_tail);
897
899
898
		if( read_bytes > 0 )
900
		if( read_bytes > 0 )
899
		{
901
		{

Return to bug 130612