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

Collapse All | Expand All

(-)comet/garp/util/gprint.c (-8 / +6 lines)
Lines 45-53 Link Here
45
45
46
46
47
void
47
void
48
gprint ( fmt, va_alist )
48
gprint ( char *fmt, ... )
49
	char *fmt;
50
        va_dcl
51
{
49
{
52
/*
50
/*
53
 *  Printf driver in C. This function parameter list comprises a format 
51
 *  Printf driver in C. This function parameter list comprises a format 
Lines 63-75 Link Here
63
61
64
	wpi = GetGuiWinPrefDialog();
62
	wpi = GetGuiWinPrefDialog();
65
63
66
	va_start(args);
64
	va_start(args, fmt);
67
/*
65
/*
68
 *	Print to standard out.
66
 *	Print to standard out.
69
 */
67
 */
70
	if ( ( GetGuiStdoutW ( wpi ) ) &&
68
	if ( ( GetGuiStdoutW ( wpi ) ) &&
71
	       XmToggleButtonGetState ( GetGuiStdoutW ( wpi ) ) )
69
	       XmToggleButtonGetState ( GetGuiStdoutW ( wpi ) ) )
72
	    printf ( fmt, va_alist );
70
	    printf ( fmt, args );
73
71
74
/*
72
/*
75
 *	Print to status window when it has been instantiated.
73
 *	Print to status window when it has been instantiated.
Lines 77-83 Link Here
77
	else if ( ( GetGuiGarpLogW ( wpi ) ) &&
75
	else if ( ( GetGuiGarpLogW ( wpi ) ) &&
78
	            XmToggleButtonGetState ( GetGuiGarpLogW ( wpi ) ) ) {
76
	            XmToggleButtonGetState ( GetGuiGarpLogW ( wpi ) ) ) {
79
	if ( GetLogInfoW ( wpi ) )
77
	if ( GetLogInfoW ( wpi ) )
80
	    wprint ( fmt, va_alist );
78
	    wprint ( fmt, args );
81
	}
79
	}
82
80
83
/*
81
/*
Lines 88-101 Link Here
88
	    if ( !fp )
86
	    if ( !fp )
89
            	OpenFile ( &fp, filename, "w" );
87
            	OpenFile ( &fp, filename, "w" );
90
            if ( fp )
88
            if ( fp )
91
            	fprintf (fp, fmt, va_alist);
89
            	fprintf (fp, fmt, args);
92
	}
90
	}
93
91
94
/*
92
/*
95
 *	Garp interface is not yet initialized so print to standard out.
93
 *	Garp interface is not yet initialized so print to standard out.
96
 */
94
 */
97
	else
95
	else
98
	    printf ( fmt, va_alist );
96
	    printf ( fmt, args );
99
97
100
98
101
	va_end(args);
99
	va_end(args);

Return to bug 31971