diff options
Diffstat (limited to 'src/wavegen.c')
-rw-r--r-- | src/wavegen.c | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/src/wavegen.c b/src/wavegen.c index 53c5db1..c722e04 100644 --- a/src/wavegen.c +++ b/src/wavegen.c @@ -17,13 +17,10 @@ along with this software. If not, see <http://www.gnu.org/licenses/>. */ -#define _POSIX_C_SOURCE 200809L // strdup - #include <stdlib.h> #include <stdio.h> #include <string.h> #include <getopt.h> -#include "lv2/lv2plug.in/ns/lv2core/lv2.h" #include "wdatutil.h" #include "wavedata.h" #include "common.h" @@ -99,9 +96,9 @@ main(int argc, long first_note = -1; long note_step = -1; long min_table_size = -1; - char* filename = NULL; + const char* filename = NULL; FILE* file; - char* prefix = NULL; + const char* prefix = NULL; float gibbs = 0.0f; int quiet = 0; int test = 0; @@ -154,10 +151,10 @@ main(int argc, min_table_size = (long)atoi(optarg); break; case 'o': - filename = strdup(optarg); + filename = optarg; break; case 'p': - prefix = strdup(optarg); + prefix = optarg; break; case 'g': gibbs = atof(optarg); @@ -307,14 +304,6 @@ main(int argc, } } - if (filename) { - free(filename); - } - - if (prefix) { - free(prefix); - } - wavedata_cleanup(w); return 0; |