ObjFW  Diff

Differences From Artifact [e437710ddc]:

To Artifact [d83aef3f71]:


90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
	_received = received;
}

- (void)_drawProgress
{
	float bars, percent;
	unsigned short barWidth;
#ifdef HAVE_SYS_IOCTL_H
	struct winsize ws;

	if (ioctl(0, TIOCGWINSZ, &ws) == 0 && ws.ws_col > 37)
		barWidth = ws.ws_col - 37;
	else
		barWidth = 0;
#else







|







90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
	_received = received;
}

- (void)_drawProgress
{
	float bars, percent;
	unsigned short barWidth;
#if defined(HAVE_SYS_IOCTL_H) && defined(TIOCGWINSZ)
	struct winsize ws;

	if (ioctl(0, TIOCGWINSZ, &ws) == 0 && ws.ws_col > 37)
		barWidth = ws.ws_col - 37;
	else
		barWidth = 0;
#else