aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/smugfs/jsonrpc.c
diff options
context:
space:
mode:
authorDan Cross <cross@gajendra.net>2020-01-10 14:44:21 +0000
committerDan Cross <cross@gajendra.net>2020-01-10 14:54:30 +0000
commitfa325e9b42b0bdfb48857d1958d9fb7ceac55151 (patch)
tree81d26256d152435135bcb1ae43121979a49f5f2b /src/cmd/smugfs/jsonrpc.c
parent77a0a5b5194d4441c86de097f2aae297cb75e2c2 (diff)
downloadplan9port-fa325e9b42b0bdfb48857d1958d9fb7ceac55151.tar.gz
plan9port-fa325e9b42b0bdfb48857d1958d9fb7ceac55151.tar.bz2
plan9port-fa325e9b42b0bdfb48857d1958d9fb7ceac55151.zip
Trivial changes: whitespace and modes.
Remote whitespace at the ends of lines. Remove blank lines from the ends of files. Change modes on source files so that they are not executable. Signed-off-by: Dan Cross <cross@gajendra.net>
Diffstat (limited to 'src/cmd/smugfs/jsonrpc.c')
-rw-r--r--src/cmd/smugfs/jsonrpc.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/cmd/smugfs/jsonrpc.c b/src/cmd/smugfs/jsonrpc.c
index 92490e77..f0043bb3 100644
--- a/src/cmd/smugfs/jsonrpc.c
+++ b/src/cmd/smugfs/jsonrpc.c
@@ -17,7 +17,7 @@ static void
jfree(CEntry *ce)
{
JEntry *j;
-
+
j = (JEntry*)ce;
jclose(j->reply);
}
@@ -45,7 +45,7 @@ static char*
makehttprequest(char *host, char *path, char *postdata)
{
Fmt fmt;
-
+
fmtstrinit(&fmt);
fmtprint(&fmt, "POST %s HTTP/1.0\r\n", path);
fmtprint(&fmt, "Host: %s\r\n", host);
@@ -87,7 +87,7 @@ dojsonhttp(Protocol *proto, char *host, char *request, int rfd, vlong rlength)
{
char *data;
HTTPHeader hdr;
-
+
data = httpreq(proto, host, request, &hdr, rfd, rlength);
if(data == nil){
fprint(2, "httpreq: %r\n");
@@ -184,7 +184,7 @@ ncsmug(char *method, char *name1, ...)
{
Json *jv;
va_list arg;
-
+
va_start(arg, name1);
// TODO: Could use https only for login.
jv = jsonrpc(&https, HOST, PATH, method, name1, arg, 0);
@@ -198,7 +198,7 @@ smug(char *method, char *name1, ...)
{
Json *jv;
va_list arg;
-
+
va_start(arg, name1);
jv = jsonrpc(&http, HOST, PATH, method, name1, arg, 1);
va_end(arg);
@@ -241,4 +241,3 @@ jsonupload(Protocol *proto, char *host, char *req, int rfd, vlong rlength)
jclose(jv);
return nil;
}
-