From e165121e120d9a6a13293ef743c630b4ec1dbce4 Mon Sep 17 00:00:00 2001 From: David Date: Sat, 10 May 2014 22:35:00 +1200 Subject: Makefile options for portability --- trayfreq_set_interface.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'trayfreq_set_interface.c') diff --git a/trayfreq_set_interface.c b/trayfreq_set_interface.c index fc847e6..d16c160 100644 --- a/trayfreq_set_interface.c +++ b/trayfreq_set_interface.c @@ -28,9 +28,9 @@ void si_gov(char* gov, int core) char cmd[256]; if (_DEFAULT_USE_SUDO) { - sprintf(cmd, "sudo trayfreq-set -g %s -c %i",gov,core); + sprintf(cmd, SUDO" "TRAYFREQ_SET" -g %s -c %i",gov,core); } else { - sprintf(cmd, "trayfreq-set -g %s -c %i",gov,core); + sprintf(cmd, TRAYFREQ_SET" -g %s -c %i",gov,core); } debug("Running '%s'\n",cmd); system(cmd); @@ -41,9 +41,9 @@ void si_freq(int freq, int core) char cmd[256]; if (_DEFAULT_USE_SUDO) { - sprintf(cmd, "sudo trayfreq-set -f %i -c %i",freq,core); + sprintf(cmd, SUDO" "TRAYFREQ_SET" -f %i -c %i",freq,core); } else { - sprintf(cmd, "trayfreq-set -f %i -c %i",freq,core); + sprintf(cmd, TRAYFREQ_SET" -f %i -c %i",freq,core); } debug("Running '%s'\n",cmd); system(cmd); -- cgit v1.1