mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
userland/linux: cc_pedantic actually works there and I found a bug with it
This commit is contained in:
@@ -255,7 +255,6 @@ def get(path):
|
|||||||
|
|
||||||
gnu_extension_properties = {
|
gnu_extension_properties = {
|
||||||
'c_std': 'gnu11',
|
'c_std': 'gnu11',
|
||||||
'cc_pedantic': False,
|
|
||||||
'cxx_std': 'gnu++17'
|
'cxx_std': 'gnu++17'
|
||||||
}
|
}
|
||||||
# https://cirosantilli.com/linux-kernel-module-cheat#freestanding-programs
|
# https://cirosantilli.com/linux-kernel-module-cheat#freestanding-programs
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ void ProcStat_init(ProcStatm *result) {
|
|||||||
}
|
}
|
||||||
if(7 != fscanf(
|
if(7 != fscanf(
|
||||||
f,
|
f,
|
||||||
"%ld %ld %ld %ld %ld %ld %ld",
|
"%lu %lu %lu %lu %lu %lu %lu",
|
||||||
&(result->size),
|
&(result->size),
|
||||||
&(result->resident),
|
&(result->resident),
|
||||||
&(result->share),
|
&(result->share),
|
||||||
|
|||||||
Reference in New Issue
Block a user