From fc7eb838fcdbbc1ac776b5724dfe42e80da7e91e Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Mon, 26 Aug 2002 09:47:46 +0000 Subject: [PATCH] - Whitespace --- ext/standard/mail.c | 46 ++++++++++++++++++++++++++------------------- 1 file changed, 27 insertions(+), 19 deletions(-) diff --git a/ext/standard/mail.c b/ext/standard/mail.c index ac1c807678..995936768b 100644 --- a/ext/standard/mail.c +++ b/ext/standard/mail.c @@ -46,7 +46,7 @@ Calculate EZMLM list hash value. */ PHP_FUNCTION(ezmlm_hash) { - char *str=NULL; + char *str = NULL; unsigned long h = 5381L; int j, str_len; @@ -55,11 +55,11 @@ PHP_FUNCTION(ezmlm_hash) return; } - for (j=0; j 0) { - for(;to_len;to_len--) { - if(!isspace((unsigned char)to[to_len-1]))break; - to[to_len-1]='\0'; + for (; to_len; to_len--) { + if (!isspace((unsigned char) to[to_len - 1])) { + break; + } + to[to_len - 1] = '\0'; } - for(i=0;to[i];i++) { - if (iscntrl((unsigned char)to[i])) { - to[i]=' '; + for (i = 0; to[i]; i++) { + if (iscntrl((unsigned char) to[i])) { + to[i] = ' '; } } } if (subject_len > 0) { - for(;subject_len;subject_len--) { - if(!isspace((unsigned char)subject[subject_len-1]))break; - subject[subject_len-1]='\0'; + for (; subject_len; subject_len--) { + if (!isspace((unsigned char) subject[subject_len - 1])) { + break; + } + subject[subject_len - 1] = '\0'; } - for(i=0;subject[i];i++) { - if (iscntrl((unsigned char)subject[i])) { - subject[i]=' '; + for(i = 0; subject[i]; i++) { + if (iscntrl((unsigned char) subject[i])) { + subject[i] = ' '; } } } @@ -121,7 +127,9 @@ PHP_FUNCTION(mail) RETVAL_FALSE; } - if (extra_cmd) efree (extra_cmd); + if (extra_cmd) { + efree (extra_cmd); + } } /* }}} */ -- 2.50.1