Testing against IS_KERNEL_ADDRESS() is more correct.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13983 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2005-08-19 12:52:19 +00:00
parent 05f8437878
commit c987e126de
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ dump_sem_info(int argc, char **argv)
num = strtoul(argv[1], NULL, 0);
if (!IS_USER_ADDRESS(num)) {
if (IS_KERNEL_ADDRESS(num)) {
dump_sem((struct sem_entry *)num);
return 0;
} else if (num > 0) {