From 438f06672feffa828d07fbcf4a1ecf0965dc050b Mon Sep 17 00:00:00 2001 From: Doug Torrance Date: Mon, 27 Feb 2017 22:22:06 -0500 Subject: [PATCH] wmappkill: Use g_free from glib instead of glibtop_free. gliptop_free no longer exists. --- wmappkill/wmAppKill.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/wmappkill/wmAppKill.c b/wmappkill/wmAppKill.c index f38a89b..2a5e219 100644 --- a/wmappkill/wmAppKill.c +++ b/wmappkill/wmAppKill.c @@ -38,7 +38,6 @@ #include #include #include -#include #include #include @@ -123,11 +122,11 @@ int CheckProc(pid_t pid) unsigned int *n; if ((n = glibtop_get_proclist (&bof, GLIBTOP_KERN_PROC_PID , (int64_t)pid)) == NULL) { - glibtop_free(n); + g_free(n); return -1; } - glibtop_free(n); + g_free(n); return 0; } @@ -175,7 +174,7 @@ _desc *GetProcList(void) /* create a double linked list */ lastOne -> next = NULL; lastProcPid = n[nbPr - 1]; - glibtop_free(n); + g_free(n); if (procBaseName && i) gNbProc = nbPr - i + 1; /* procBase has been found */ else { /* procBaseName is null or hasn't been found */ @@ -273,7 +272,7 @@ int CheckProcChange(void) if (diffNbProc == 0 && (n[nbPr - 1] == lastProcPid)){ /* only changes before baseproc */ gNbProcTotal = nbPr; - glibtop_free(n); + g_free(n); return 0; } @@ -287,7 +286,7 @@ int CheckProcChange(void) CheckProcToAdd(nbPr - diffNbProc - 1, n, nbPr); } - glibtop_free(n); + g_free(n); return 1; }