]> mj.ucw.cz Git - libucw.git/blobdiff - lib/fb-file.c
gettid: fixed a compilation bug on gentoo
[libucw.git] / lib / fb-file.c
index cb479f3b55e01d3365adf7607d2e41b23c847da1..1f6dcb2eeab3632f709c04659cbc6dc6a8062af6 100644 (file)
@@ -92,13 +92,13 @@ bfd_config(struct fastbuf *f, uns item, int value)
 }
 
 struct fastbuf *
-bfdopen_internal(int fd, uns buflen, byte *name)
+bfdopen_internal(int fd, byte *name, uns buflen)
 {
+  ASSERT(buflen);
   int namelen = strlen(name) + 1;
   struct fb_file *F = xmalloc(sizeof(struct fb_file) + buflen + namelen);
   struct fastbuf *f = &F->fb;
 
-  ASSERT(buflen);
   bzero(F, sizeof(*F));
   f->buffer = (byte *)(F+1);
   f->bptr = f->bstop = f->buffer;