mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
lib/csa: Use ANSI C prototypes
Improve type compatibility and enable ANSI C prototypes.
This commit is contained in:
parent
aa12f819dd
commit
50e6c86bf4
6 changed files with 3 additions and 23 deletions
|
@ -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
|
rtable2_clnt.c rtable2_xdr.c: rtable3.h namechange1.sed namechange2.sed
|
||||||
agent_xdr.c agent.c: agent.h
|
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:
|
agent.h:
|
||||||
$(RM) $@
|
$(RM) $@
|
||||||
cat agent.wrapbegin > agent.h
|
cat agent.wrapbegin > agent.h
|
||||||
|
|
|
@ -296,7 +296,7 @@ _DtCm_process_updates()
|
||||||
*/
|
*/
|
||||||
|
|
||||||
Update_Status *
|
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;
|
static Update_Status status = update_succeeded;
|
||||||
_CallbackInfo *cbi;
|
_CallbackInfo *cbi;
|
||||||
|
|
|
@ -4,11 +4,3 @@
|
||||||
#if defined(HPUX)
|
#if defined(HPUX)
|
||||||
#include <rpc/types.h>
|
#include <rpc/types.h>
|
||||||
#endif /* HPUX */
|
#endif /* HPUX */
|
||||||
|
|
||||||
#if defined(linux) || defined(CSRG_BASED)
|
|
||||||
# if defined __STDC__
|
|
||||||
# define REDEFINE_STDC
|
|
||||||
# undef __STDC__
|
|
||||||
# endif
|
|
||||||
#endif /* linux */
|
|
||||||
|
|
||||||
|
|
|
@ -3,10 +3,3 @@
|
||||||
#define hpux
|
#define hpux
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(linux)
|
|
||||||
# if defined REDEFINE_STDC
|
|
||||||
# undef REDEFINE_STDC
|
|
||||||
# define __STDC__
|
|
||||||
# endif
|
|
||||||
#endif /* linux */
|
|
||||||
|
|
|
@ -32,6 +32,6 @@ enum Update_Status {
|
||||||
*/
|
*/
|
||||||
program AGENTPROG {
|
program AGENTPROG {
|
||||||
version AGENTVERS {
|
version AGENTVERS {
|
||||||
Update_Status update_callback(Table_Res) = 1;
|
Update_Status update_callback(Table_Res_4) = 1;
|
||||||
}=1;
|
}=1;
|
||||||
}=00;
|
}=00;
|
||||||
|
|
|
@ -33,6 +33,7 @@
|
||||||
|
|
||||||
#include <EUSCompat.h>
|
#include <EUSCompat.h>
|
||||||
#include "ansi_c.h"
|
#include "ansi_c.h"
|
||||||
|
#include <sys/types.h>
|
||||||
|
|
||||||
extern CSA_calendar_user *_DtCm_alloc_calendar_users(uint num_elem);
|
extern CSA_calendar_user *_DtCm_alloc_calendar_users(uint num_elem);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue