dtcm/server/: just return NULL, not the address of a dummy local variable. Geez.
authorJon Trulson <jon@radscan.com>
Sun, 23 Mar 2014 01:18:22 +0000 (19:18 -0600)
committerJon Trulson <jon@radscan.com>
Sun, 23 Mar 2014 01:23:46 +0000 (19:23 -0600)
cde/programs/dtcm/server/cmsfunc.c
cde/programs/dtcm/server/rtable2.c
cde/programs/dtcm/server/rtable3.c
cde/programs/dtcm/server/rtable4.c

index a99d0fedf8f11213e31293d5b1f7aa79b68bd59e..a5f3bc2715021f76f19e76da13adf220affe6646 100644 (file)
@@ -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 */
 }
 
 
index 023df61545e4cae5d7adbae16db2f215c52d7bca..7f45afbc39154c5ffcaa5dc232f481c753a01f20 100644 (file)
@@ -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         */
index 0ced345292b081c7c3657a53c9e84d2d6bae6791..6134b3aef90bd8a5c2438316b60f18f9ec56e9fe 100644 (file)
@@ -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         */
index 061b63dc9d30ba7573c398cb9989cd7776cf2677..4fdf17e12573f91d61c5bf9214d86bc89ff827d7 100644 (file)
@@ -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