diff options
Diffstat (limited to 'pcitool')
-rw-r--r-- | pcitool/CMakeLists.txt | 8 | ||||
-rw-r--r-- | pcitool/sysinfo.c | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/pcitool/CMakeLists.txt b/pcitool/CMakeLists.txt new file mode 100644 index 0000000..ad2cb4e --- /dev/null +++ b/pcitool/CMakeLists.txt @@ -0,0 +1,8 @@ +include_directories( + ${CMAKE_SOURCE_DIR} +) + +set(HEADERS ${HEADERS} sysinfo.h) + +add_library(pcitool STATIC sysinfo.c) + diff --git a/pcitool/sysinfo.c b/pcitool/sysinfo.c index 7b25972..d6f57fe 100644 --- a/pcitool/sysinfo.c +++ b/pcitool/sysinfo.c @@ -104,7 +104,7 @@ int get_file_fs(const char *fname, size_t size, char *fs) { if ((!fname)||(!fs)||(size < 3)) return -1; - if (*fn == '/') { + if (*fname == '/') { fn = (char*)fname; } else { if (!getcwd(buf, 4095)) return -1; |