diff options
Diffstat (limited to 'blasms.c')
-rw-r--r-- | blasms.c | 7 |
1 files changed, 0 insertions, 7 deletions
@@ -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++) { |