Package: orville-write
Version: 2.55-2.3
Severity: minor
Tags: patch
User: [email protected]
Usertags: clang-ftbfs
Dear Maintainer,
Your package fails to build with clang instead of gcc. [-Wreturn-type]
The attached patch fixes it.
Buildlogs and patch are here:
https://github.com/nonas/debian-clang/tree/master/buildlogs/orville-write
Regards,
Nicolas
-- System Information:
Debian Release: jessie/sid
APT prefers testing-updates
APT policy: (500, 'testing-updates'), (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.14-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
--- orville-write-2.55.orig/wrt_hist.c
+++ orville-write-2.55/wrt_hist.c
@@ -86,7 +86,7 @@
* slot "writer" wrote the person in slot "writee".
*/
-put_hist(long writer, long writee, struct wrthist *hist)
+void put_hist(long writer, long writee, struct wrthist *hist)
{
if (writee > MAXSLOTS)
return;
--- orville-write-2.55.orig/mesg.c
+++ orville-write-2.55/mesg.c
@@ -651,14 +651,14 @@
int n, foundsome= 0;
FILE *fp;
- if (newmode == 0) return;
+ if (newmode == 0) return 0;
/* Compute my slot number from my offset */
if ((writer= (mypos - wt_head.hdr_size)/wt_head.tmp_size) > MAXSLOTS)
- return;
+ return 0;
if ((fp= fopen(f_wrthist,"r")) == NULL)
- return;
+ return 0;
fseek(fp,whindex(writer,0),0);
hist= (struct wrthist *)malloc(MAXSLOTS*sizeof(struct wrthist));