X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=tools%2Fsanity_check%2Fsystemtest.cpp;h=bd873fad4158634878eb1824f12d7c9aea1cf627;hb=c55c8141776ff97765875617af7b38d6236633a7;hp=025eb0ef25a146b7829633ede584568550f1908d;hpb=760ccbabfbec67d80c3bdac9c0803ecf7d1742b6;p=ardour.git diff --git a/tools/sanity_check/systemtest.cpp b/tools/sanity_check/systemtest.cpp index 025eb0ef25..bd873fad41 100644 --- a/tools/sanity_check/systemtest.cpp +++ b/tools/sanity_check/systemtest.cpp @@ -14,7 +14,7 @@ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * * Set of functions to gather system information for the jack setup wizard. - * + * * TODO: Test for rt prio availability * * @author Florian Faber, faber@faberman.de @@ -43,7 +43,7 @@ #include "systemtest.h" /** - * This function checks for the existence of known frequency scaling mechanisms + * This function checks for the existence of known frequency scaling mechanisms * in this system by testing for the availability of scaling governors/ * * @returns 0 if the system has no frequency scaling capabilities non-0 otherwise. @@ -73,13 +73,13 @@ static int read_string(char* filename, char* buf, size_t buflen) { if (-1 scaling return 1; } - } + } } } } else { @@ -130,7 +130,7 @@ int system_uses_frequencyscaling() { } cpu++; } - + // couldn't find anything that points to scaling return 0; } @@ -169,20 +169,21 @@ int system_user_in_group(const char *name) { gid = get_group_by_name(name); if (0==gid) { fprintf(stderr, "No %s group found\n", name); + free(list); return 0; } - + num_groups = getgroups(MAX_GROUPS, list); - + while (i