Re: CentOS 6.2-x86-64

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



Hello Gene,

On Wed, 2012-06-20 at 15:59 -0400, Gene Heskett wrote:
> header.cc:77: error: invalid conversion from ‘const char*’ to ‘char*’

> Lines 77-78 in that file:
>  if (!(dom = strrchr (msgid, '@')))
>     return -1;
> 
> Obviously strrchr() tries to convert the header spec here from line 35:
> 
> int Header :: rfc822_valid_msgid (const char* msgid)
> 
> into a plain char.  Boom on a 64 bit machine.

A char is always 8 bit regardless of the architecture. The issue is a
const char* being converted to a char*. Try declaring dom as
const char* dom
and see if that helps. (Note that this makes the content of the pointer
constant, not the pointer itself.)

Regards,
Leonard.

-- 
mount -t life -o ro /dev/dna /genetic/research


_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux