aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/upas/common/libsys.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/upas/common/libsys.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/upas/common/libsys.c')
-rw-r--r--src/cmd/upas/common/libsys.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cmd/upas/common/libsys.c b/src/cmd/upas/common/libsys.c
index b439cfde..2ed19494 100644
--- a/src/cmd/upas/common/libsys.c
+++ b/src/cmd/upas/common/libsys.c
@@ -198,7 +198,7 @@ trylock(char *path)
free(l);
return 0;
}
-
+
/* fork process to keep lock alive */
switch(l->pid = rfork(RFPROC)){
default:
@@ -470,7 +470,7 @@ sysnames_read(void)
for(p=h->h_aliases; *p; p++)
;
-
+
namev = malloc((2+p-h->h_aliases)*sizeof namev[0]);
if(namev == 0)
return 0;
@@ -709,7 +709,7 @@ mboxpath(char *path, char *user, String *to, int dot)
{
char *dir;
String *s;
-
+
if (dot || *path=='/' || strncmp(path, "./", 2) == 0
|| strncmp(path, "../", 3) == 0) {
to = s_append(to, path);
@@ -801,7 +801,7 @@ remoteaddr(int fd, char *dir)
{
char *raddr;
NetConnInfo *nci;
-
+
if((nci = getnetconninfo(dir, fd)) == nil)
return nil;
raddr = strdup(nci->raddr);