Compile ToolTalk on FreeBSD

Fix const correctness problems with OPT_CONST_CORRECT:

tt_xdr_utils.C: In constructor '_Tt_xdr_size_stream::_Tt_xdr_size_stream()':
tt_xdr_utils.C:150: error: invalid conversion from 'bool_t (*)(__rpc_xdr*, long int*)' to 'bool_t (*)(__rpc_xdr*, const long int*)'
tt_xdr_utils.C:151: error: invalid conversion from 'bool_t (*)(__rpc_xdr*, char*, unsigned int)' to 'bool_t (*)(__rpc_xdr*, const char*, u_int)'
tt_xdr_utils.C:159: error: invalid conversion from 'bool_t (*)(__rpc_xdr*, char*, unsigned int)' to 'bool_t (*)(__rpc_xdr*, const char*, u_int)'

tt_entry_pt.C: In function '_Tt_string _tt_entrypt_to_string(_Tt_entry_pt)':
tt_entry_pt.C:455: error: conversion from 'long int' to '_Tt_string' is ambiguous
../../lib/util/tt_string.h:104: note: candidates are: _Tt_string::_Tt_string(int)
../../lib/util/tt_string.h:102: note:                 _Tt_string::_Tt_string(const char*)
This commit is contained in:
Marcin Cieslak
2012-08-13 04:01:47 +02:00
committed by Jon Trulson
parent 8e80886661
commit bf8c5e674f
9 changed files with 51 additions and 6 deletions

View File

@@ -46,6 +46,7 @@ in this Software without prior written authorization from The Open Group.
*/
#include <stdio.h>
#include <stdlib.h>
#include <X11/Xos.h>
#include <X11/Xfuncs.h>
@@ -57,7 +58,7 @@ typedef int Bool;
extern char *ProgramName;
#if !defined(linux)
#if !defined(linux) && !defined(CSRG_BASED)
extern char *malloc(), *realloc();
#endif
int process_command(), auth_initialize(), auth_finalize();