$NetBSD: patch-ag,v 1.3 2011/09/19 07:15:52 dholland Exp $

- use modern C
- silence warnings about assignments within if conditions

--- lib/Xmc/ListDis.c.orig	1998-02-01 20:07:47.000000000 +0000
+++ lib/Xmc/ListDis.c
@@ -20,6 +20,8 @@
  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
+#include <stdlib.h>
+#include <string.h>
 #include <xmc.h>
 #include <xmclib.h>
 #include <xmcp.h>
@@ -50,7 +52,7 @@ XmcListDisplays
       return 0;
 
    sz = r->length - sz_xmcListDisplaysReply;
-   if (dp = (DispId *)malloc(sz)) {
+   if ((dp = malloc(sz)) != NULL) {
       bcopy((char *)(r+1), (char *)dp, sz);
       *ndisp = r->nDisplays;
    }
