2 A parameter changed from unsigned int to unsigned long in CSE.
7 typedef unsigned int UINT
;
8 typedef unsigned char BYTE
;
9 typedef unsigned short WORD
;
10 typedef unsigned long DWORD
;
14 static void mem_set (void* dst
, int val
, UINT cnt
)
16 ASSERT (dst
== global_buf
);
26 const UINT n_fats
= 1;
30 DWORD szb_buf
, sz_buf
, sect
, nsect
, n
;
41 szb_buf
= sz_buf
* ss
;
45 mem_set(buf
, 0, (UINT
)szb_buf
);
47 for (i
= 0; i
< n_fats
; i
++) {
50 n
= (nsect
> sz_buf
) ? sz_buf
: nsect
;
52 sect
+= n
; nsect
-= n
;
60 f_mkfs (global_buf
, 1);