masqmail
changeset 207:dcb315792513
removed commented code and replaced // by /* */
author | meillo@marmaro.de |
---|---|
date | Sun, 18 Jul 2010 21:41:48 +0200 |
parents | 0241aaccfcdb |
children | 3708b655a371 |
files | src/fail_msg.c src/listen.c src/lookup.c src/md5/hmactest.c src/peopen.c src/readtest.c |
diffstat | 6 files changed, 5 insertions(+), 15 deletions(-) [+] |
line diff
1.1 --- a/src/fail_msg.c Sat Jul 17 00:34:40 2010 +0200 1.2 +++ b/src/fail_msg.c Sun Jul 18 21:41:48 2010 +0200 1.3 @@ -58,8 +58,6 @@ 1.4 gchar *cmd; 1.5 pid_t pid; 1.6 1.7 - // cmd = g_strdup_printf(SBINDIR"/masqmail -oi -f \"<>\" %s@%s", 1.8 - // ret_path->local_part, ret_path->domain); 1.9 cmd = g_strdup_printf(SBINDIR "/masqmail -oi -f <> %s@%s", ret_path->local_part, ret_path->domain); 1.10 if ((out = peidopen(cmd, "w", environ, &pid, conf.mail_uid, conf.mail_gid))) { 1.11 gchar fmt[256], line[256];
2.1 --- a/src/listen.c Sat Jul 17 00:34:40 2010 +0200 2.2 +++ b/src/listen.c Sun Jul 18 21:41:48 2010 +0200 2.3 @@ -69,7 +69,7 @@ 2.4 logwrite(LOG_NOTICE, "connect from host %s, port %hd\n", rem_host, ntohs(sock_addr->sin_port)); 2.5 #endif 2.6 2.7 - // start child for connection: 2.8 + /* start child for connection: */ 2.9 signal(SIGCHLD, sigchld_handler); 2.10 pid = fork(); 2.11 if (pid == 0) {
3.1 --- a/src/lookup.c Sat Jul 17 00:34:40 2010 +0200 3.2 +++ b/src/lookup.c Sun Jul 18 21:41:48 2010 +0200 3.3 @@ -51,16 +51,8 @@ 3.4 { 3.5 int n; 3.6 int i; 3.7 + int resp_len; 3.8 3.9 - int resp_len; 3.10 - /*errno = 0; */ 3.11 - 3.12 - /* 3.13 - if (!stralloc_copy(&glue,domain)) return DNS_MEM; 3.14 - if (!stralloc_0(&glue)) return DNS_MEM; 3.15 - */ 3.16 - 3.17 - // resp_len = res_query(domain, C_IN, type, response.buf, sizeof(response)); 3.18 DEBUG(5) debugf("DNS: before res_search()\n"); 3.19 if (do_search) 3.20 resp_len = res_search(domain, C_IN, type, response.buf, sizeof(response));
4.1 --- a/src/md5/hmactest.c Sat Jul 17 00:34:40 2010 +0200 4.2 +++ b/src/md5/hmactest.c Sun Jul 18 21:41:48 2010 +0200 4.3 @@ -24,7 +24,7 @@ 4.4 main() 4.5 { 4.6 int i; 4.7 - // unsigned char digest[16]; 4.8 + /* unsigned char digest[16]; */ 4.9 char digest[16]; 4.10 char *msgid = "<1896.697170952@postoffice.reston.mci.net>"; 4.11 char secret[65];
5.1 --- a/src/peopen.c Sat Jul 17 00:34:40 2010 +0200 5.2 +++ b/src/peopen.c Sun Jul 18 21:41:48 2010 +0200 5.3 @@ -93,7 +93,7 @@ 5.4 if (close(pipe_fd[mode == Read ? 0 : 1]) != -1 && 5.5 dup2(pipe_fd[mode == Read ? 1 : 0], 5.6 mode == Read ? STDOUT_FILENO : STDIN_FILENO) != -1) { 5.7 - // char *argv [] = { "/bin/sh", "-c", (char*) command, NULL }; 5.8 + /* char *argv [] = { "/bin/sh", "-c", (char*) command, NULL }; */ 5.9 char **argv = create_argv(command, 10); 5.10 int ret; 5.11
6.1 --- a/src/readtest.c Sat Jul 17 00:34:40 2010 +0200 6.2 +++ b/src/readtest.c Sun Jul 18 21:41:48 2010 +0200 6.3 @@ -9,7 +9,7 @@ 6.4 int size = 20, ret; 6.5 6.6 ret = read_sockline1(stdin, &buf, &size, 60, READSOCKL_CVT_CRLF); 6.7 - // ret = read_sockline(stdin, buf, size, 60, READSOCKL_CHUG); 6.8 + /* ret = read_sockline(stdin, buf, size, 60, READSOCKL_CHUG); */ 6.9 6.10 printf("%s\n", buf); 6.11 printf("ret = %d, size = %d, strlen = %d\n", ret, size, strlen(buf));