aboutsummaryrefslogtreecommitdiff
path: root/freq_tray
diff options
context:
space:
mode:
authorDavid <dbphillipsnz@gmail.com>2014-04-10 15:02:03 +1200
committerDavid <dbphillipsnz@gmail.com>2014-04-10 15:02:03 +1200
commit46318378cd1cda05329e974e89c032c6c90bd3e1 (patch)
treecd5b53c2091051f37f1f99bcba5114ca8684e1fe /freq_tray
parente55f3d0ced6cd8a30caefc3e2f6eeacd080a1626 (diff)
downloadparamano-46318378cd1cda05329e974e89c032c6c90bd3e1.tar.xz
French translation of strings
Diffstat (limited to 'freq_tray')
-rw-r--r--freq_tray/getfreq.c5
-rw-r--r--freq_tray/getgov.c1
2 files changed, 4 insertions, 2 deletions
diff --git a/freq_tray/getfreq.c b/freq_tray/getfreq.c
index 5ac3948..7ac2181 100644
--- a/freq_tray/getfreq.c
+++ b/freq_tray/getfreq.c
@@ -16,6 +16,7 @@
* <http://www.gnu.org/licenses/>. *
************************************************************************/
+#include "string.h"
#include "getfreq.h"
#include "getcore.h"
#include "math.h"
@@ -37,7 +38,7 @@ void gf_init()
int j = 0;
for(i = 0; i < gc_number(); ++i)
{
- memset(freq_string, '\0', 500);
+ memset(freq_string, 0, 500);
// Get available governor freqs. If no governor, try next cpu
if (gf_available(i, freq_string, 500) == -1)
@@ -49,7 +50,7 @@ void gf_init()
gchar* end_of_curr = g_strstr_len(curr, strlen(curr), " ");
while(end_of_curr)
{
- memset(AVAILABLE_FREQUENCIES[i][j], '\0', 13);
+ memset(AVAILABLE_FREQUENCIES[i][j], 0, 13);
memmove(AVAILABLE_FREQUENCIES[i][j], curr, end_of_curr - curr);
curr = end_of_curr+1;
diff --git a/freq_tray/getgov.c b/freq_tray/getgov.c
index cbb571c..8fe44a5 100644
--- a/freq_tray/getgov.c
+++ b/freq_tray/getgov.c
@@ -16,6 +16,7 @@
* <http://www.gnu.org/licenses/>. *
************************************************************************/
+#include "string.h"
#include "getgov.h"
#include "getcore.h"