aboutsummaryrefslogtreecommitdiff
path: root/x11/xbelld/files/patch-xbelld.c
blob: 280dee3b4871076d1a2a4d43967a0440e843de16 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32

$FreeBSD$

--- xbelld.c.orig
+++ xbelld.c
@@ -268,7 +268,7 @@
     u_int   i;
 
     if (!hp->h_size)
-	return NULL;
+	return False;
     i = hp->h_hash(data) % hp->h_size;
     if (!TAILQ_EMPTY(&(hp->h_buckets[i])))
     {
@@ -914,7 +914,7 @@
     close(dfd);
     for (nent = 0, dep = (struct dirent *)dbuf;
 	    (char *)dep - dbuf < nb;
-	    ++nent, (char *)dep+= dep->d_reclen)
+	    ++nent, dep+= dep->d_reclen)
 	;
     _hash_resize(&(_bd.bd_sndhash), nent * 2);
     if (_bd.bd_defsnd)
@@ -924,7 +924,7 @@
     }
     for (dep = (struct dirent *)dbuf;
 	    (char *)dep - dbuf < nb;
-	    (char *)dep+= dep->d_reclen)
+	    dep+= dep->d_reclen)
     {
 	char		    *suf;
 	static const char   *sufs[] = AUDIO_SUFS;