aboutsummaryrefslogtreecommitdiff
path: root/trayfreq_set.c
diff options
context:
space:
mode:
authorDavid <dbphillipsnz@gmail.com>2014-05-10 22:35:00 +1200
committerDavid <dbphillipsnz@gmail.com>2014-05-10 22:35:00 +1200
commite165121e120d9a6a13293ef743c630b4ec1dbce4 (patch)
tree6f18bc85819b3a20370e26bfe8009d43e01fae3d /trayfreq_set.c
parent743958b5b4de70190a81485e1c55582ad35431c0 (diff)
downloadparamano-e165121e120d9a6a13293ef743c630b4ec1dbce4.tar.xz
Makefile options for portability
Diffstat (limited to 'trayfreq_set.c')
-rw-r--r--trayfreq_set.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/trayfreq_set.c b/trayfreq_set.c
index 785b93b..2b8f1d2 100644
--- a/trayfreq_set.c
+++ b/trayfreq_set.c
@@ -17,8 +17,6 @@
************************************************************************/
-// <TO DO> : move a lot of this to a .h
-
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -41,8 +39,6 @@ typedef struct {
char *frequency;
} argument_summary;
-// </TO DO>
-
char write_str_to_file(const char *file, const char *data, const char *core)
{
FILE *fd;
@@ -115,12 +111,7 @@ void get_argument_summary(int argc, char **argv, argument_summary *argsum)
int main(int argc, char *argv[])
{
setlocale(LC_ALL,"");
-
-
- // TO DO: Not portable
- bindtextdomain("trayfreq","/usr/share/locale");
-
- // TO DO: Needs to be #defined
+ bindtextdomain("trayfreq",LOCALE_DIR);
textdomain("trayfreq");
debug("Set gettext up\n");