[Pkg-wmaker-commits] [wmmemload] 29/103: wmmemload: Fix version check for kernel 3.0.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Mon Aug 24 03:11:41 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch master
in repository wmmemload.

commit 59358b3c030562c2f966cbb17e28fbcb276a24cb
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date:   Sat Oct 4 00:53:17 2014 -0500

    wmmemload: Fix version check for kernel 3.0.
    
    Based on the patch from Debian by Guillermo Indalecio Fernandez
    <guillermobox at gmail.com>:
    http://sources.debian.net/src/wmmemload/0.1.6-8/debian/patches/04-kernel30.patch/
---
 src/mem_linux.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/mem_linux.c b/src/mem_linux.c
index a17b1f4..eee1b90 100644
--- a/src/mem_linux.c
+++ b/src/mem_linux.c
@@ -49,8 +49,9 @@ void mem_init(void)
 
    /* new format ? (kernel >= 2.5.1pre?) */
    /* see linux/fs/proc/proc_misc.c */
-   if (version >= 2 && patchlevel >= 5 && sublevel >= 1 || \
-       version >= 2 && patchlevel >= 6 && sublevel >= 0)
+   if (version == 2 && patchlevel >= 5 && sublevel >= 1 || \
+       version == 2 && patchlevel >= 6 && sublevel >= 0 || \
+       version >2 )
       isnewformat = 1;
 }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmmemload.git



More information about the Pkg-wmaker-commits mailing list