summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@gmx.de>2013-06-02 23:46:38 +0200
committercinap_lenrek <cinap_lenrek@gmx.de>2013-06-02 23:46:38 +0200
commitbf2dd0c6bdc79e4e0b048f0c9a19b8bfc09f59d3 (patch)
treed28e6f7adce7e1518fd30997ab008a4083666fc0 /sys
parent97c4381dc4279de6f9a463069f22df9e06162747 (diff)
parenta5589dda2257ba47139ae1af48502c34b0b11efb (diff)
merge
Diffstat (limited to 'sys')
-rw-r--r--sys/man/2/auth2
-rw-r--r--sys/src/cmd/hjfs/fs2.c2
-rw-r--r--sys/src/cmd/jpg/readgif.c2
-rw-r--r--sys/src/cmd/jpg/readjpg.c2
-rw-r--r--sys/src/cmd/jpg/readtga.c4
5 files changed, 5 insertions, 7 deletions
diff --git a/sys/man/2/auth b/sys/man/2/auth
index f2aee745d..773354d36 100644
--- a/sys/man/2/auth
+++ b/sys/man/2/auth
@@ -44,7 +44,7 @@ void auth_freerpc(AuthRpc *rpc);
uint auth_rpc(AuthRpc *rpc, char *verb, void *a, int n);
.PP
.B
-int auth_getkey(char *proto, char *dom);
+int auth_getkey(char *params);
.PP
.B
int (*amount_getkey)(char*, char*);
diff --git a/sys/src/cmd/hjfs/fs2.c b/sys/src/cmd/hjfs/fs2.c
index a4a97c70c..d823222e5 100644
--- a/sys/src/cmd/hjfs/fs2.c
+++ b/sys/src/cmd/hjfs/fs2.c
@@ -723,8 +723,6 @@ chanwstat(Chan *ch, Dir *di)
if(di->length != d->size && !permcheck(ch->fs, d, ch->uid, OWRITE))
goto perm;
}
- if((ulong)~di->atime)
- goto inval;
if((ulong)~di->mtime && !owner)
goto perm;
if((ulong)~di->mode && !owner)
diff --git a/sys/src/cmd/jpg/readgif.c b/sys/src/cmd/jpg/readgif.c
index 3521753fd..0a5edd364 100644
--- a/sys/src/cmd/jpg/readgif.c
+++ b/sys/src/cmd/jpg/readgif.c
@@ -156,7 +156,7 @@ readarray(Header *h)
if(h->fields & 0x80)
h->globalcmap = readcmap(h, (h->fields&7)+1);
- array = malloc(sizeof(Rawimage**));
+ array = malloc(sizeof(Rawimage*));
if(array == nil)
giferror(h, memerr);
nimages = 0;
diff --git a/sys/src/cmd/jpg/readjpg.c b/sys/src/cmd/jpg/readjpg.c
index c50260e5d..a3ab3ed8a 100644
--- a/sys/src/cmd/jpg/readjpg.c
+++ b/sys/src/cmd/jpg/readjpg.c
@@ -247,7 +247,7 @@ Breadjpg(Biobuf *b, int colorspace)
}
jpginit();
h = malloc(sizeof(Header));
- array = malloc(sizeof(Header));
+ array = malloc(2*sizeof(Rawimage*));
if(h==nil || array==nil){
free(h);
free(array);
diff --git a/sys/src/cmd/jpg/readtga.c b/sys/src/cmd/jpg/readtga.c
index afea0fad0..b0ba260d3 100644
--- a/sys/src/cmd/jpg/readtga.c
+++ b/sys/src/cmd/jpg/readtga.c
@@ -404,12 +404,12 @@ Breadtga(Biobuf *bp)
}
array = nil;
- if((ar = calloc(sizeof(Rawimage), 1)) == nil){
+ if((ar = calloc(1, sizeof(Rawimage))) == nil){
werrstr("ReadTGA: no memory - %r\n");
goto Error;
}
- if((array = calloc(sizeof(Rawimage *), 2)) == nil){
+ if((array = calloc(2, sizeof(Rawimage *))) == nil){
werrstr("ReadTGA: no memory - %r\n");
goto Error;
}