From: Jon Trulson Date: Sun, 23 Mar 2014 01:18:22 +0000 (-0600) Subject: dtcm/server/: just return NULL, not the address of a dummy local variable. Geez. X-Git-Tag: 2.2.2~37 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=23e62e57829cdb99792dd5129be1ef81764c6ff7;p=oweals%2Fcde.git dtcm/server/: just return NULL, not the address of a dummy local variable. Geez. --- diff --git a/cde/programs/dtcm/server/cmsfunc.c b/cde/programs/dtcm/server/cmsfunc.c index a99d0fed..a5f3bc27 100644 --- a/cde/programs/dtcm/server/cmsfunc.c +++ b/cde/programs/dtcm/server/cmsfunc.c @@ -87,12 +87,10 @@ static CSA_return_code _DtCmsGetOldCalAttrNames(_DtCmsCalendar *cal, extern void * cms_ping_5_svc(void *args, struct svc_req *svcrq) { - char dummy; - if (debug) fprintf(stderr, "cms_ping_5_svc called\n"); - return((void *)&dummy); /* for RPC reply */ + return(NULL); /* for RPC reply */ } diff --git a/cde/programs/dtcm/server/rtable2.c b/cde/programs/dtcm/server/rtable2.c index 023df615..7f45afbc 100644 --- a/cde/programs/dtcm/server/rtable2.c +++ b/cde/programs/dtcm/server/rtable2.c @@ -54,8 +54,7 @@ _DtCm_rtable_ping_2_svc(args, svcrq) void *args; struct svc_req *svcrq; { - char dummy; - return((void *)&dummy); /* for RPC reply */ + return(NULL); /* for RPC reply */ } /* PROC #1 */ diff --git a/cde/programs/dtcm/server/rtable3.c b/cde/programs/dtcm/server/rtable3.c index 0ced3452..6134b3ae 100644 --- a/cde/programs/dtcm/server/rtable3.c +++ b/cde/programs/dtcm/server/rtable3.c @@ -54,8 +54,7 @@ _DtCm_rtable_ping_3_svc(args, svcrq) void *args; struct svc_req *svcrq; { - char dummy; - return((void *)&dummy); /* for RPC reply */ + return(NULL); /* for RPC reply */ } /* PROC #1 */ diff --git a/cde/programs/dtcm/server/rtable4.c b/cde/programs/dtcm/server/rtable4.c index 061b63dc..4fdf17e1 100644 --- a/cde/programs/dtcm/server/rtable4.c +++ b/cde/programs/dtcm/server/rtable4.c @@ -1554,12 +1554,10 @@ _DtCm_rtable_rename_4_svc(Table_Op_Args_4 *args, struct svc_req *svcrq) extern void * _DtCm_rtable_ping_4_svc(void *args, struct svc_req *svcrq) { - char dummy; - if (debug) fprintf(stderr, "_DtCm_rtable_ping_4_svc called\n"); - return((void *)&dummy); /* for RPC reply */ + return(NULL); /* for RPC reply */ } extern void