Commit a87884aa authored by Rusty Russell's avatar Rusty Russell

cpuid: ccanlint fixes.

Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent 659efe73
../../licenses/BSD-MIT
\ No newline at end of file
../../licenses/BSD-MIT
\ No newline at end of file
......@@ -8,10 +8,11 @@
*
* Example:
* #include <ccan/cpuid/cpuid.h>
* #include <stdio.h>
*
* int main()
* int main(void)
* {
* int highest;
* uint32_t highest;
* cpuid(CPU_HIGHEST_EXTENDED_FUNCTION_SUPPORTED, &highest);
* printf ("Highest extended function supported: %d\n", highest);
*
......
#include "cpuid.h"
#include "../cpuid.c"
#include <stdio.h>
#include <stdint.h>
int main()
int main(void)
{
if (!cpuid_is_supported()) {
printf ("CPUID instruction is not supported by this CPU\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment