aboutsummaryrefslogtreecommitdiff
path: root/src/writeenv.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2011-04-25 22:44:39 +0200
committerDaniel Stenberg <daniel@haxx.se>2011-04-27 09:09:35 +0200
commitaa87f0ab15c15784c4d7ee55e8c5972f5353b41e (patch)
tree822a24e4c999d30e3c9f75d0bc78a8721a174336 /src/writeenv.c
parent6a6981503e509a2bfcec0763535c0f667e23ce38 (diff)
checksrc: whitespace and code style cleanup
Make everything adhere to the standards upheld by checksrc.pl and now run checksrc from the makefile on debug builds.
Diffstat (limited to 'src/writeenv.c')
-rw-r--r--src/writeenv.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/writeenv.c b/src/writeenv.c
index 18e1a063d..e3edbec75 100644
--- a/src/writeenv.c
+++ b/src/writeenv.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2010, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -84,17 +84,17 @@ void ourWriteEnv(CURL *curl)
long longinfo;
double doubleinfo;
- for (i=0; variables[i].name; i++) {
+ for(i=0; variables[i].name; i++) {
switch (variables[i].type) {
case writeenv_STRING:
- if (curl_easy_getinfo(curl, variables[i].id, &string) == CURLE_OK)
+ if(curl_easy_getinfo(curl, variables[i].id, &string) == CURLE_OK)
internalSetEnv(variables[i].name, string);
else
internalSetEnv(variables[i].name, NULL);
break;
case writeenv_LONG:
- if (curl_easy_getinfo(curl, variables[i].id, &longinfo) == CURLE_OK) {
+ if(curl_easy_getinfo(curl, variables[i].id, &longinfo) == CURLE_OK) {
curl_msprintf(numtext, "%5ld", longinfo);
internalSetEnv(variables[i].name, numtext);
}
@@ -102,7 +102,7 @@ void ourWriteEnv(CURL *curl)
internalSetEnv(variables[i].name, NULL);
break;
case writeenv_DOUBLE:
- if (curl_easy_getinfo(curl, variables[i].id, &doubleinfo) == CURLE_OK) {
+ if(curl_easy_getinfo(curl, variables[i].id, &doubleinfo) == CURLE_OK) {
curl_msprintf(numtext, "%6.2f", doubleinfo);
internalSetEnv(variables[i].name, numtext);
}