<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hello. Thanks for the review.<br>
</p>
<blockquote type="cite" cite="mid:87mskb1f83.fsf@tromey.com">
<pre><blockquote type="cite" style="color: #007cff;"><pre
class="moz-quote-pre" wrap="">+ int colors = tgetnum ((char *)"Co");
</pre></blockquote><pre class="moz-quote-pre" wrap="">I wonder if that cast is really needed any longer.
</pre></pre>
</blockquote>
<p>On my machine with Ubuntu 22.04 and libncurses-dev 6.3 there is
no need to cast because of const char * in the signature of
tgetnum.</p>
<p>But in many manuals on the Internet the signature is described as
tgetnum(char *).</p>
<p>Since I can't test it on every supported OS with every curses
implementation I would leave this cast as everywhere in the gdb
sources.<br>
</p>
</body>
</html>