mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-12 14:00:19 -04:00
17 lines
403 B
C
17 lines
403 B
C
$NetBSD: patch-msgs.c,v 1.1 2013/11/04 15:34:38 christos Exp $
|
|
|
|
Avoid pointer<->integer conversions
|
|
|
|
--- msgs.c 2013-11-04 10:20:09.000000000 -0500
|
|
+++ msgs.c 2013-11-04 10:28:09.000000000 -0500
|
|
@@ -817,7 +817,7 @@
|
|
cnt = msg_cnt;
|
|
(void) fseek(fp, append == 1 ? msg[cnt].m_offset : 0L, L_SET);
|
|
} else {
|
|
- cnt = (int)list;
|
|
+ cnt = *(int *)list;
|
|
old = msg[cnt];
|
|
}
|
|
|
|
Only in www: mush.core
|