summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Bratch <l_bratch@yahoo.co.uk>2010-10-30 01:57:53 +0100
committerLuke Bratch <l_bratch@yahoo.co.uk>2010-10-30 01:57:53 +0100
commitf3e1be947e75cfd1333d1a2918019374b125b6a7 (patch)
tree24da285c1496f94746d2f671646e13c048694142
parent4e59ebc5eb23805b596b4f60011ec233bc3f8d3f (diff)
Remove unnecessary commented debug lines
-rw-r--r--blasms.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/blasms.c b/blasms.c
index 373296d..d61710e 100644
--- a/blasms.c
+++ b/blasms.c
@@ -71,7 +71,6 @@ void setname(char* telnum) {
if ((strchrp = strchr(line + offset + 1, ' ')) != NULL) {
line[strchrp - line] = '\0';
}
- //printf("Name match: %s\n", line);
strcat(telnum, " (");
strcat(telnum, line + offset + 1);
strcat(telnum, ")");
@@ -224,7 +223,6 @@ int main(int argc, char *argv[]) {
while (fgets(line, 1024, fp) != NULL) {
remtrailn(line);
- //printf("%s\n", line);
if ((strchrp = strchr(line, ' ')) != NULL) {
offset = strchrp - line;
if (offset > 10) {
@@ -235,7 +233,6 @@ int main(int argc, char *argv[]) {
configcmd[offset] = '\0';
if (!strcmp(configcmd, "default")) {
strcpy(defaultcmd, line + offset + 1);
- //printf("Default command: %s\n", defaultcmd);
continue;
}
/* If the SMS command doesn't end here, continue */
@@ -244,7 +241,6 @@ int main(int argc, char *argv[]) {
}
strxfrm(smscommand, sms, offset);
smscommand[offset] = '\0';
- //printf("SMS command: %s\n", smscommand);
if (!strcmp(smscommand, configcmd)) {
match = 1;
break;
@@ -253,15 +249,12 @@ int main(int argc, char *argv[]) {
}
if (match) {
- //printf("Command match!\n");
strcpy(systemcmd, line + offset + 1);
} else {
- //printf("Using default command.\n");
strcpy(systemcmd, defaultcmd);
offset = -1;
}
- //printf("Command: %s\n", systemcmd);
match = 0;
for (i = 0; i < strlen(systemcmd); i++) {