1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-13 11:42:21 +00:00

lib/csa: Use ANSI C prototypes

Improve type compatibility and enable
ANSI C prototypes.
This commit is contained in:
Marcin Cieslak 2012-08-13 12:10:37 +02:00 committed by Jon Trulson
parent aa12f819dd
commit 50e6c86bf4
6 changed files with 3 additions and 23 deletions

View file

@ -105,12 +105,6 @@ rtable3_clnt.c rtable3_xdr.c: rtable3.h namechange1.sed namechange2.sed
rtable2_clnt.c rtable2_xdr.c: rtable3.h namechange1.sed namechange2.sed
agent_xdr.c agent.c: agent.h
#ifdef LinuxArchitecture
EXTRASED=sed -e 's/update_failed.*=.*1,.*/update_failed = 1/g' |
#else
EXTRASED=
#endif
agent.h:
$(RM) $@
cat agent.wrapbegin > agent.h

View file

@ -296,7 +296,7 @@ _DtCm_process_updates()
*/
Update_Status *
_DtCm_update_callback_1(Table_Res_4 *t, void *dummy)
_DtCm_update_callback_1(Table_Res_4 *t, _DtCm_Connection *conn)
{
static Update_Status status = update_succeeded;
_CallbackInfo *cbi;

View file

@ -4,11 +4,3 @@
#if defined(HPUX)
#include <rpc/types.h>
#endif /* HPUX */
#if defined(linux) || defined(CSRG_BASED)
# if defined __STDC__
# define REDEFINE_STDC
# undef __STDC__
# endif
#endif /* linux */

View file

@ -3,10 +3,3 @@
#define hpux
#endif
#endif
#if defined(linux)
# if defined REDEFINE_STDC
# undef REDEFINE_STDC
# define __STDC__
# endif
#endif /* linux */

View file

@ -32,6 +32,6 @@ enum Update_Status {
*/
program AGENTPROG {
version AGENTVERS {
Update_Status update_callback(Table_Res) = 1;
Update_Status update_callback(Table_Res_4) = 1;
}=1;
}=00;

View file

@ -33,6 +33,7 @@
#include <EUSCompat.h>
#include "ansi_c.h"
#include <sys/types.h>
extern CSA_calendar_user *_DtCm_alloc_calendar_users(uint num_elem);