1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-15 04:32:24 +00:00

libcsa: Resolve GCC 9 warnings

This commit is contained in:
Peter Howkins 2020-08-01 21:38:08 +01:00
parent c7907f4f19
commit ce4fad4c5a
4 changed files with 8 additions and 4 deletions

View file

@ -62,8 +62,8 @@
static struct timeval timeout_tv;
static struct timeval retry_tv;
static AUTH *unix_credential = NULL;
static tcp_count = 0;
static cl_count = 0;
static int tcp_count = 0;
static int cl_count = 0;
static _DtCm_Client_Info *client_cache_head = NULL;
static _DtCm_Client_Info *client_cache_tail = NULL;

View file

@ -108,5 +108,9 @@ extern CSA_return_code _DtCm_get_server_rpc_version P((char *host, int *vers));
extern CSA_return_code _DtCm_clntstat_to_csastat P((enum clnt_stat clntstat));
extern enum clnt_stat _DtCm_clnt_call(_DtCm_Connection *conn,
u_long proc, xdrproc_t inproc, caddr_t in,
xdrproc_t outproc, caddr_t out, struct timeval tout);
#endif

View file

@ -803,7 +803,7 @@ _DtCm_add_reminder(char *rem, CSA_reminder * val, Appt_4 *appt)
/* convert lead_time to advance value */
if (val->lead_time)
_csa_iso8601_to_duration(val->lead_time, &ltime);
sprintf(adv, "%d", ltime);
sprintf(adv, "%ld", ltime);
if ((newattr->value = strdup(adv)) == NULL) {
_DtCm_free_attr4(newattr);

View file

@ -52,7 +52,7 @@ _DtCm_print_tick(time_t t)
_Xctimeparams ctime_buf;
a = _XCtime(&t, ctime_buf);
(void) fprintf (stderr, "%d %s\n", t, a);
(void) fprintf (stderr, "%ld %s\n", t, a);
}
extern void