thakur@ZERKALO.HARVARD.EDU ("Manavendra K. Thakur") (08/11/90)
Attached below is a minor patch to contrib/clients/xperfmon/Perfmon.c to keep gcc from issuing a warning about "incomptabile pointer types" at compile-time. Also, there is no depend target or lint target if the Makefile is created from the Imakefile on a Sun. This patch corrects that too. This patch should be applied after applying Jody Winston's (...!sun!shell!jody) patches to enable xperfmon to work on sparcs and sunos 4. Hope this helps someone out there. Manavendra K. Thakur Internet: thakur@zerkalo.harvard.edu System Manager, High Energy Division BITNET: thakur@cfa.BITNET Harvard-Smithsonian Center for DECNET: CFA::thakur Astrophysics UUCP: ...!uunet!mit-eddie!thakur === Cut Here === *** Imakefile.orig Sat Aug 11 00:23:48 1990 --- Imakefile Sat Aug 11 00:19:01 1990 *************** *** 13,18 **** --- 13,20 ---- KERNELLIBRARY = -lkvm NormalProgramTarget(xperfmon,$(OBJS),, ,$(LOCAL_LIBRARIES) $(KERNELLIBRARY)) SpecialObjectRule(system.o, ,-Dsunos4) + DependTarget() + LintTarget() #endif /* OSMajorVersion >= 4 */ #else ComplexProgramTarget(xperfmon) *** Perfmon.c.orig Tue Sep 19 14:44:07 1989 --- Perfmon.c Sat Aug 11 00:03:19 1990 *************** *** 713,719 **** static void HandleKey(w, event, params, num_params) Widget w; ! XEvent *event; String *params; Cardinal *num_params; /* This routine interprets the key that was pressed on top of the window. --- 713,719 ---- static void HandleKey(w, event, params, num_params) Widget w; ! XKeyEvent *event; String *params; Cardinal *num_params; /* This routine interprets the key that was pressed on top of the window. *************** *** 723,729 **** { #define STRBUFSIZE 64 char strbuf[STRBUFSIZE]; ! int i, keycode, length = 0; PerfmonWidget pw = (PerfmonWidget) w; length = XLookupString(event, strbuf, STRBUFSIZE, &keycode, NULL); --- 723,730 ---- { #define STRBUFSIZE 64 char strbuf[STRBUFSIZE]; ! int i, length = 0; ! KeySym keycode = 0; PerfmonWidget pw = (PerfmonWidget) w; length = XLookupString(event, strbuf, STRBUFSIZE, &keycode, NULL);