RossComputerGuy/stardustos

View on GitHub
newland/src/fs.c

Summary

Maintainability
Test Coverage

Either the condition src!=NULL is redundant or there is possible null pointer dereference: src.
Wontfix

    strcpy((char*)mp->source, src);
Severity: Minor
Found in newland/src/fs.c and 1 other location by cppcheck
newland/src/fs.c on lines 231..231

Either the condition src!=NULL is redundant or there is possible null pointer dereference: src. (detailed CWE explanation)

The function fs_get is never used.
Invalid

fs_t* fs_get(size_t i) {
Severity: Minor
Found in newland/src/fs.c by cppcheck

The function fs_get is never used. (detailed CWE explanation)

The function mountpoint_destroy is never used.
Invalid

int mountpoint_destroy(const char* target) {
Severity: Minor
Found in newland/src/fs.c by cppcheck

The function mountpoint_destroy is never used. (detailed CWE explanation)

The function mountpoint_count is never used.
Invalid

size_t mountpoint_count() {
Severity: Minor
Found in newland/src/fs.c by cppcheck

The function mountpoint_count is never used. (detailed CWE explanation)

The function mountpoint_create is never used.
Invalid

int mountpoint_create(fs_t** fsptr, const char* src, const char* target, unsigned long flags, const void* data) {
Severity: Minor
Found in newland/src/fs.c by cppcheck

The function mountpoint_create is never used. (detailed CWE explanation)

The function unregister_fs is never used.
Invalid

int unregister_fs(const char* name) {
Severity: Minor
Found in newland/src/fs.c by cppcheck

The function unregister_fs is never used. (detailed CWE explanation)

The function fs_node_ioctl is never used.
Invalid

int fs_node_ioctl(fs_node_t** nodeptr, int req, ...) {
Severity: Minor
Found in newland/src/fs.c by cppcheck

The function fs_node_ioctl is never used. (detailed CWE explanation)

The function fs_count is never used.
Invalid

size_t fs_count() {
Severity: Minor
Found in newland/src/fs.c by cppcheck

The function fs_count is never used. (detailed CWE explanation)

There are no issues that match your filters.

Category
Status