tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] 0.9.22: GNU nano compile error


From: Laurent Charmet
Subject: Re: [Tinycc-devel] 0.9.22: GNU nano compile error
Date: Wed, 17 Nov 2004 09:12:00 +0100
User-agent: Mozilla Thunderbird 0.9 (Windows/20041103)

address@hidden wrote:

nano.c:1805: cannot use pointers here

Looking at this section of nano.c, line 1805 is a
blank line:

   1798     while ((bytesread = read(uniq_fd[0],
read_buff_ptr, pipe_buff_size)
   1798 ) > 0) {
   1799         read_buff_read += bytesread;
   1800         read_buff_size += pipe_buff_size;
   1801         read_buff = read_buff_ptr =
charealloc(read_buff, read_buff_siz
   1801 e);
   1802         read_buff_ptr += read_buff_read;
   1803
   1804     }
   1805
   1806     *read_buff_ptr = (char)NULL;
NULL is for pointer, and *read_buff_ptr is a char. Ok there is a casting. Try to modify like this :

*read_buff_ptr = 0;


   1807     close(uniq_fd[0]);

What, and where, is the error?

-Charles




_______________________________________________
Tinycc-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/tinycc-devel



Attachment: laurent.charmet.vcf
Description: Vcard


reply via email to

[Prev in Thread] Current Thread [Next in Thread]