Revision: 75502
          http://sourceforge.net/p/brlcad/code/75502
Author:   starseeker
Date:     2020-04-21 18:56:17 +0000 (Tue, 21 Apr 2020)
Log Message:
-----------
Put null dm behavior back

Modified Paths:
--------------
    brlcad/branches/dm-fb-merge/src/libdm/null/dm-Null.c

Modified: brlcad/branches/dm-fb-merge/src/libdm/null/dm-Null.c
===================================================================
--- brlcad/branches/dm-fb-merge/src/libdm/null/dm-Null.c        2020-04-21 
18:46:46 UTC (rev 75501)
+++ brlcad/branches/dm-fb-merge/src/libdm/null/dm-Null.c        2020-04-21 
18:56:17 UTC (rev 75502)
@@ -34,13 +34,10 @@
 #include "../include/private.h"
 
 struct dm *
-null_open(void *interp, int argc, const char *argv[])
+null_open(void *interp, int UNUSED(argc), const char **UNUSED(argv))
 {
     struct dm *dmp = DM_NULL;
 
-    if (argc < 0 || !argv)
-        return DM_NULL;
-
     BU_ALLOC(dmp, struct dm);
     BU_ALLOC(dmp->i, struct dm_impl);
 
@@ -51,10 +48,8 @@
 }
 
 int
-null_close(struct dm *dmp)
+null_close(struct dm *UNUSED(dmp))
 {
-    bu_free(dmp->i, "dmp impl");
-    bu_free(dmp, "dmp");
     return 0;
 }
 

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to