From 4b65006881b3ec79ca6ada0f74ca9790ae002961 Mon Sep 17 00:00:00 2001 From: sin Date: Mon, 15 Sep 2014 15:26:49 +0100 Subject: Remove unused symbols --- config.mk | 2 +- ratatox.c | 61 +++---------------------------------------------------------- 2 files changed, 4 insertions(+), 59 deletions(-) diff --git a/config.mk b/config.mk index 050dade..334081f 100644 --- a/config.mk +++ b/config.mk @@ -8,5 +8,5 @@ MANPREFIX = $(PREFIX)/share/man CC = cc LD = $(CC) CPPFLAGS = -CFLAGS = -I/usr/local/include $(CPPFLAGS) +CFLAGS = -I/usr/local/include -Wall -Wunused $(CPPFLAGS) LDFLAGS = -L/usr/local/lib -ltoxcore diff --git a/ratatox.c b/ratatox.c index 6992656..ba71f3b 100644 --- a/ratatox.c +++ b/ratatox.c @@ -132,54 +132,6 @@ qtoken(char *s, char *sep) return t; } -static char * -etoken(char *t, char *sep) -{ - int quoting; - - /* move to end of next token */ - quoting = 0; - while(*t!='\0' && (quoting || strchr(sep, *t)==NULL)) { - if(*t != '\'') { - t++; - continue; - } - /* *t is a quote */ - if(!quoting) { - quoting = 1; - t++; - continue; - } - /* quoting and we're on a quote */ - if(t[1] != '\'') { - /* end of quoted section; absorb closing quote */ - t++; - quoting = 0; - continue; - } - /* doubled quote; fold one quote into two */ - t += 2; - } - return t; -} - -static int -gettokens(char *s, char **args, int maxargs, char *sep) -{ - int nargs; - - for(nargs=0; nargs