Re: CentOS 6.2-x86-64

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



Leonard den Ottolander wrote:
> 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.)

Or just
if (!(strrchr ( msgid, '@' ))) {
        return -1;
}

      mark

_______________________________________________
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