From b450bae44d70bb2710bd00ea06a34fe431f42402 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Thu, 22 Mar 2001 23:25:56 +0000 Subject: - fix detection of more than 3 scsi attached devices - cleaner code for cmp of ptr against static strings --- mdk-stage1/tools.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mdk-stage1/tools.h') diff --git a/mdk-stage1/tools.h b/mdk-stage1/tools.h index 8ec084451..85295492b 100644 --- a/mdk-stage1/tools.h +++ b/mdk-stage1/tools.h @@ -46,5 +46,7 @@ struct param_elem char * value; }; +#define ptr_begins_static_str(pointer,static_str) (!strncmp(pointer,static_str,sizeof(static_str)-1)) + #endif -- cgit v1.2.1