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-06-06 20:30:36 +1200
commita04001bb863cc853c1f064c2eb91391fbc24dc1b (patch)
treec53ca9d2949e6277a32f27adbdbc827ea5d98096 /trayfreq_set.c
parente076ef53d0af32c88deda0a63a6b58f9d5e04c0d (diff)
downloadparamano-a04001bb863cc853c1f064c2eb91391fbc24dc1b.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");