summaryrefslogtreecommitdiffstats
path: root/tcpclient.c
diff options
context:
space:
mode:
Diffstat (limited to 'tcpclient.c')
-rw-r--r--tcpclient.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tcpclient.c b/tcpclient.c
index 3410b97..f2a2fc7 100644
--- a/tcpclient.c
+++ b/tcpclient.c
@@ -60,7 +60,7 @@ int main(int argc, char **argv)
char *filepart = strrchr(pathstr, '/');
if (filepart && strlen(filepart + 1))
strcpy(filestr, filepart + 1);
- else
+ else
strcpy(filestr, "index.html");
printf("file is: \"%s\"\n", filestr);
@@ -189,7 +189,7 @@ int main(int argc, char **argv)
/* poke at http header and check for errors */
int code;
sscanf(recv_buff, "HTTP/1.%*[01] %d ", &code);
- if (code == 200)
+ if (code == 200)
printf("received file\n");
else
{