BAN-AI-Communications/k95-mingw

View on GitHub
k95source/ckupty.c

Summary

Maintainability
Test Coverage

Showing 13 of 13 total issues

Too many #ifdef configurations - cppcheck only checks 12 of 292 configurations. Use --force to check all configurations.
Open

#endif /* NETPTY */
Severity: Info
Found in k95source/ckupty.c by cppcheck

XXX found
Open

/* XXX If we don't have either what do we do? */
Severity: Minor
Found in k95source/ckupty.c by fixme

XXX found
Open

/* XXX do nothing for now; we don't even know the struct member exists */
Severity: Minor
Found in k95source/ckupty.c by fixme

XXX found
Open

/* XXX - need to clean up the allocated pty */
Severity: Minor
Found in k95source/ckupty.c by fixme

Unused variable: vfd
Open

int vfd, testfd;
Severity: Minor
Found in k95source/ckupty.c by cppcheck

The scope of the variable tmpx can be reduced.
Open

char *tmpx;
Severity: Minor
Found in k95source/ckupty.c by cppcheck

Unused variable: con_fd
Open

int con_fd;
Severity: Minor
Found in k95source/ckupty.c by cppcheck

The scope of the variable utmp_id can be reduced.
Open

char utmp_id[5];
Severity: Minor
Found in k95source/ckupty.c by cppcheck

Unused variable: b
Open

struct sgttyb b;
Severity: Minor
Found in k95source/ckupty.c by cppcheck

The function end_pty is never used.
Open

end_pty() {
Severity: Minor
Found in k95source/ckupty.c by cppcheck

The function do_pty is never used.
Open

do_pty(cmd) char * cmd; {
Severity: Minor
Found in k95source/ckupty.c by cppcheck

The function pty_logwtmp is never used.
Open

pty_logwtmp (tty, user, host) char *user, *tty, *host; {
Severity: Minor
Found in k95source/ckupty.c by cppcheck

The function ptyint_vhangup is never used.
Open

ptyint_vhangup() {
Severity: Minor
Found in k95source/ckupty.c by cppcheck

There are no issues that match your filters.

Category
Status