From 2d24737cdc2fa8a56ad9b74135c4069205a8ee3d Mon Sep 17 00:00:00 2001 From: Ray Bellis Date: Mon, 19 Feb 2018 21:25:05 +0000 Subject: [PATCH] compiler warnings --- mc6809_X.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mc6809_X.cc b/mc6809_X.cc index 4cdb76d..6341775 100644 --- a/mc6809_X.cc +++ b/mc6809_X.cc @@ -82,8 +82,8 @@ mc6809_X::mc6809_X() // Set window class XClassHint xch; - xch.res_name = "mc6809"; - xch.res_class = "MC6809"; + xch.res_name = strdup("mc6809"); + xch.res_class = strdup("MC6809"); XSetClassHint(dpy, win, &xch); // Put the window on the screen @@ -145,7 +145,7 @@ void mc6809_X::status(void) strcat(tmp, " "); } - for (j = 0; j < 8; ++j) { + for (int j = 0; j < 8; ++j) { Byte ch = memory[stk + j]; strcat(tmp, ascchr(ch)); }