Task #119208 - fixed.err
back to task #119208download
Error: COMPILER_WARNING:
lsof-4.98.0-rh/arg.c: scope_hint: In function ‘ckfd_range’
lsof-4.98.0-rh/arg.c:65:1: warning[-Wold-style-definition]: old-style function definition
# 65 | ckfd_range(first, dash, last, lo, hi)
# | ^~~~~~~~~~
# 63|
# 64| static int
# 65|-> ckfd_range(first, dash, last, lo, hi)
# 66| char *first; /* starting character */
# 67| char *dash; /* '-' location */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/arg.c:65:1: warning[-Wold-style-definition]: old-style function definition
# 63|
# 64| static int
# 65|-> ckfd_range(first, dash, last, lo, hi)
# 66| char *first; /* starting character */
# 67| char *dash; /* '-' location */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/arg.c: scope_hint: In function ‘ck_file_arg’
lsof-4.98.0-rh/arg.c:114:1: warning[-Wold-style-definition]: old-style function definition
# 114 | ck_file_arg(i, ac, av, fv, rs, sbp, accept_deleted_file)
# | ^~~~~~~~~~~
# 112|
# 113| int
# 114|-> ck_file_arg(i, ac, av, fv, rs, sbp, accept_deleted_file)
# 115| int i; /* first file argument index */
# 116| int ac; /* argument count */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/arg.c:114:1: warning[-Wold-style-definition]: old-style function definition
# 112|
# 113| int
# 114|-> ck_file_arg(i, ac, av, fv, rs, sbp, accept_deleted_file)
# 115| int i; /* first file argument index */
# 116| int ac; /* argument count */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/arg.c: scope_hint: In function ‘enter_cmd_rx’
lsof-4.98.0-rh/arg.c:585:1: warning[-Wold-style-definition]: old-style function definition
# 585 | enter_cmd_rx(x)
# | ^~~~~~~~~~~~
# 583|
# 584| int
# 585|-> enter_cmd_rx(x)
# 586| char *x; /* regular expression */
# 587| {
Error: COMPILER_WARNING:
lsof-4.98.0-rh/arg.c:585:1: warning[-Wold-style-definition]: old-style function definition
# 583|
# 584| int
# 585|-> enter_cmd_rx(x)
# 586| char *x; /* regular expression */
# 587| {
Error: CPPCHECK_WARNING (CWE-401):
lsof-4.98.0-rh/arg.c:701: error[memleakOnRealloc]: Common realloc mistake: 'CmdRx' nulled but not freed upon failure
# 699| xl = (MALLOC_S)(NCmdRxA * sizeof(lsof_rx_t));
# 700| if (CmdRx)
# 701|-> CmdRx = (lsof_rx_t *)realloc((MALLOC_P *)CmdRx, xl);
# 702| else
# 703| CmdRx = (lsof_rx_t *)malloc(xl);
Error: COMPILER_WARNING:
lsof-4.98.0-rh/arg.c: scope_hint: In function ‘enter_efsys’
lsof-4.98.0-rh/arg.c:743:1: warning[-Wold-style-definition]: old-style function definition
# 743 | enter_efsys(e, rdlnk)
# | ^~~~~~~~~~~
# 741|
# 742| int
# 743|-> enter_efsys(e, rdlnk)
# 744| char *e; /* file system path */
# 745| int rdlnk; /* avoid readlink(2) if non-zero */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/arg.c:743:1: warning[-Wold-style-definition]: old-style function definition
# 741|
# 742| int
# 743|-> enter_efsys(e, rdlnk)
# 744| char *e; /* file system path */
# 745| int rdlnk; /* avoid readlink(2) if non-zero */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/arg.c: scope_hint: In function ‘enter_fd’
lsof-4.98.0-rh/arg.c:806:1: warning[-Wold-style-definition]: old-style function definition
# 806 | enter_fd(f)
# | ^~~~~~~~
# 804|
# 805| int
# 806|-> enter_fd(f)
# 807| char *f; /* file descriptor list pointer */
# 808| {
Error: COMPILER_WARNING:
lsof-4.98.0-rh/arg.c:806:1: warning[-Wold-style-definition]: old-style function definition
# 804|
# 805| int
# 806|-> enter_fd(f)
# 807| char *f; /* file descriptor list pointer */
# 808| {
Error: COMPILER_WARNING:
lsof-4.98.0-rh/arg.c: scope_hint: In function ‘enter_fd_lst’
lsof-4.98.0-rh/arg.c:873:1: warning[-Wold-style-definition]: old-style function definition
# 873 | enter_fd_lst(nm, lo, hi, excl)
# | ^~~~~~~~~~~~
# 871|
# 872| static int
# 873|-> enter_fd_lst(nm, lo, hi, excl)
# 874| char *nm; /* FD name (none if NULL) */
# 875| int lo; /* FD low boundary (if nm NULL) */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/arg.c:873:1: warning[-Wold-style-definition]: old-style function definition
# 871|
# 872| static int
# 873|-> enter_fd_lst(nm, lo, hi, excl)
# 874| char *nm; /* FD name (none if NULL) */
# 875| int lo; /* FD low boundary (if nm NULL) */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/arg.c: scope_hint: In function ‘enter_dir’
lsof-4.98.0-rh/arg.c:987:1: warning[-Wold-style-definition]: old-style function definition
# 987 | enter_dir(d, descend)
# | ^~~~~~~~~
# 985|
# 986| int
# 987|-> enter_dir(d, descend)
# 988| char *d; /* directory path name pointer */
# 989| int descend; /* subdirectory descend flag:
Error: COMPILER_WARNING:
lsof-4.98.0-rh/arg.c:987:1: warning[-Wold-style-definition]: old-style function definition
# 985|
# 986| int
# 987|-> enter_dir(d, descend)
# 988| char *d; /* directory path name pointer */
# 989| int descend; /* subdirectory descend flag:
Error: COMPILER_WARNING:
lsof-4.98.0-rh/arg.c: scope_hint: In function ‘enter_id’
lsof-4.98.0-rh/arg.c:1270:1: warning[-Wold-style-definition]: old-style function definition
# 1270 | enter_id(ty, p)
# | ^~~~~~~~
# 1268|
# 1269| int
# 1270|-> enter_id(ty, p)
# 1271| enum IDType ty; /* type: PGID or PID */
# 1272| char *p; /* process group ID string pointer */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/arg.c:1270:1: warning[-Wold-style-definition]: old-style function definition
# 1268|
# 1269| int
# 1270|-> enter_id(ty, p)
# 1271| enum IDType ty; /* type: PGID or PID */
# 1272| char *p; /* process group ID string pointer */
Error: CPPCHECK_WARNING (CWE-476):
lsof-4.98.0-rh/arg.c:1377: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: s
# 1375| }
# 1376| }
# 1377|-> s[n].f = 0;
# 1378| s[n].i = id;
# 1379| s[n++].x = x;
Error: CPPCHECK_WARNING (CWE-476):
lsof-4.98.0-rh/arg.c:1378: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: s
# 1376| }
# 1377| s[n].f = 0;
# 1378|-> s[n].i = id;
# 1379| s[n++].x = x;
# 1380| if (x)
Error: CPPCHECK_WARNING (CWE-476):
lsof-4.98.0-rh/arg.c:1379: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: s
# 1377| s[n].f = 0;
# 1378| s[n].i = id;
# 1379|-> s[n++].x = x;
# 1380| if (x)
# 1381| nx++;
Error: COMPILER_WARNING:
lsof-4.98.0-rh/arg.c: scope_hint: In function ‘enter_network_address’
lsof-4.98.0-rh/arg.c:1410:1: warning[-Wold-style-definition]: old-style function definition
# 1410 | enter_network_address(na)
# | ^~~~~~~~~~~~~~~~~~~~~
# 1408|
# 1409| int
# 1410|-> enter_network_address(na)
# 1411| char *na; /* Internet address string pointer */
# 1412| {
Error: COMPILER_WARNING:
lsof-4.98.0-rh/arg.c:1410:1: warning[-Wold-style-definition]: old-style function definition
# 1408|
# 1409| int
# 1410|-> enter_network_address(na)
# 1411| char *na; /* Internet address string pointer */
# 1412| {
Error: COMPILER_WARNING:
lsof-4.98.0-rh/arg.c: scope_hint: In function ‘enter_nwad’
lsof-4.98.0-rh/arg.c:1841:1: warning[-Wold-style-definition]: old-style function definition
# 1841 | enter_nwad(n, sp, ep, s, he)
# | ^~~~~~~~~~
# 1839|
# 1840| static int
# 1841|-> enter_nwad(n, sp, ep, s, he)
# 1842| struct nwad *n; /* pointer to partially completed
# 1843| * nwad (less port) */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/arg.c:1841:1: warning[-Wold-style-definition]: old-style function definition
# 1839|
# 1840| static int
# 1841|-> enter_nwad(n, sp, ep, s, he)
# 1842| struct nwad *n; /* pointer to partially completed
# 1843| * nwad (less port) */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/arg.c: scope_hint: In function ‘enter_state_spec’
lsof-4.98.0-rh/arg.c:1964:1: warning[-Wold-style-definition]: old-style function definition
# 1964 | enter_state_spec(ss)
# | ^~~~~~~~~~~~~~~~
# 1962|
# 1963| int
# 1964|-> enter_state_spec(ss)
# 1965| char *ss; /* state specification string */
# 1966| {
Error: COMPILER_WARNING:
lsof-4.98.0-rh/arg.c:1964:1: warning[-Wold-style-definition]: old-style function definition
# 1962|
# 1963| int
# 1964|-> enter_state_spec(ss)
# 1965| char *ss; /* state specification string */
# 1966| {
Error: COMPILER_WARNING:
lsof-4.98.0-rh/arg.c: scope_hint: In function ‘enter_str_lst’
lsof-4.98.0-rh/arg.c:2184:1: warning[-Wold-style-definition]: old-style function definition
# 2184 | enter_str_lst(opt, s, lp, incl, excl)
# | ^~~~~~~~~~~~~
# 2182|
# 2183| int
# 2184|-> enter_str_lst(opt, s, lp, incl, excl)
# 2185| char *opt; /* option name */
# 2186| char *s; /* string to enter */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/arg.c:2184:1: warning[-Wold-style-definition]: old-style function definition
# 2182|
# 2183| int
# 2184|-> enter_str_lst(opt, s, lp, incl, excl)
# 2185| char *opt; /* option name */
# 2186| char *s; /* string to enter */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/arg.c: scope_hint: In function ‘enter_uid’
lsof-4.98.0-rh/arg.c:2239:1: warning[-Wold-style-definition]: old-style function definition
# 2239 | enter_uid(us)
# | ^~~~~~~~~
# 2237|
# 2238| int
# 2239|-> enter_uid(us)
# 2240| char *us; /* User IDentifier string pointer */
# 2241| {
Error: COMPILER_WARNING:
lsof-4.98.0-rh/arg.c:2239:1: warning[-Wold-style-definition]: old-style function definition
# 2237|
# 2238| int
# 2239|-> enter_uid(us)
# 2240| char *us; /* User IDentifier string pointer */
# 2241| {
Error: CPPCHECK_WARNING (CWE-401):
lsof-4.98.0-rh/arg.c:2351: error[memleakOnRealloc]: Common realloc mistake: 'Suid' nulled but not freed upon failure
# 2349| Suid = (struct seluid *)malloc(len);
# 2350| else
# 2351|-> Suid = (struct seluid *)realloc((MALLOC_P *)Suid, len);
# 2352| if (!Suid) {
# 2353| (void) fprintf(stderr, "%s: no space for UIDs", Pn);
Error: COMPILER_WARNING:
lsof-4.98.0-rh/arg.c: scope_hint: In function ‘isIPv4addr’
lsof-4.98.0-rh/arg.c:2382:1: warning[-Wold-style-definition]: old-style function definition
# 2382 | isIPv4addr(hn, a, al)
# | ^~~~~~~~~~
# 2380|
# 2381| static char *
# 2382|-> isIPv4addr(hn, a, al)
# 2383| char *hn; /* host name */
# 2384| unsigned char *a; /* address receptor */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/arg.c:2382:1: warning[-Wold-style-definition]: old-style function definition
# 2380|
# 2381| static char *
# 2382|-> isIPv4addr(hn, a, al)
# 2383| char *hn; /* host name */
# 2384| unsigned char *a; /* address receptor */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/arg.c: scope_hint: In function ‘lkup_hostnm’
lsof-4.98.0-rh/arg.c:2458:1: warning[-Wold-style-definition]: old-style function definition
# 2458 | lkup_hostnm(hn, n)
# | ^~~~~~~~~~~
# 2456|
# 2457| static struct hostent *
# 2458|-> lkup_hostnm(hn, n)
# 2459| char *hn; /* host name */
# 2460| struct nwad *n; /* network address destination */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/arg.c:2458:1: warning[-Wold-style-definition]: old-style function definition
# 2456|
# 2457| static struct hostent *
# 2458|-> lkup_hostnm(hn, n)
# 2459| char *hn; /* host name */
# 2460| struct nwad *n; /* network address destination */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/dialects/linux/dfile.c: scope_hint: In function ‘is_file_named’
lsof-4.98.0-rh/dialects/linux/dfile.c:209:1: warning[-Wold-style-definition]: old-style function definition
# 209 | is_file_named(ty, p, mp, cd)
# | ^~~~~~~~~~~~~
# 207|
# 208| int
# 209|-> is_file_named(ty, p, mp, cd)
# 210| int ty; /* search type: 0 = only by device
# 211| * and inode
Error: COMPILER_WARNING:
lsof-4.98.0-rh/dialects/linux/dfile.c:209:1: warning[-Wold-style-definition]: old-style function definition
# 207|
# 208| int
# 209|-> is_file_named(ty, p, mp, cd)
# 210| int ty; /* search type: 0 = only by device
# 211| * and inode
Error: COMPILER_WARNING:
lsof-4.98.0-rh/dialects/linux/dfile.c: scope_hint: In function ‘printdevname’
lsof-4.98.0-rh/dialects/linux/dfile.c:367:1: warning[-Wold-style-definition]: old-style function definition
# 367 | printdevname(dev, rdev, f, nty)
# | ^~~~~~~~~~~~
# 365|
# 366| int
# 367|-> printdevname(dev, rdev, f, nty)
# 368| dev_t *dev; /* device */
# 369| dev_t *rdev; /* raw device */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/dialects/linux/dfile.c:367:1: warning[-Wold-style-definition]: old-style function definition
# 365|
# 366| int
# 367|-> printdevname(dev, rdev, f, nty)
# 368| dev_t *dev; /* device */
# 369| dev_t *rdev; /* raw device */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/dialects/linux/dmnt.c: scope_hint: In function ‘cvtoe’
lsof-4.98.0-rh/dialects/linux/dmnt.c:87:1: warning[-Wold-style-definition]: old-style function definition
# 87 | cvtoe(os)
# | ^~~~~
# 85|
# 86| static char *
# 87|-> cvtoe(os)
# 88| char *os; /* original string */
# 89| {
Error: COMPILER_WARNING:
lsof-4.98.0-rh/dialects/linux/dmnt.c:87:1: warning[-Wold-style-definition]: old-style function definition
# 85|
# 86| static char *
# 87|-> cvtoe(os)
# 88| char *os; /* original string */
# 89| {
Error: CPPCHECK_WARNING (CWE-401):
lsof-4.98.0-rh/dialects/linux/dmnt.c:151: error[memleakOnRealloc]: Common realloc mistake: 'cs' nulled but not freed upon failure
# 149| */
# 150| cl += 64; /* (Make an arbitrary increase.) */
# 151|-> if (!(cs = (char *)realloc(cs, cl + 1))) {
# 152| (void) fprintf(stderr,
# 153| "%s: can't realloc %d bytes for octal-escaping.\n",
Error: COMPILER_WARNING:
lsof-4.98.0-rh/dialects/linux/dmnt.c: scope_hint: In function ‘getmntdev’
lsof-4.98.0-rh/dialects/linux/dmnt.c:177:1: warning[-Wold-style-definition]: old-style function definition
# 177 | getmntdev(dn, dnl, s, ss)
# | ^~~~~~~~~
# 175|
# 176| static int
# 177|-> getmntdev(dn, dnl, s, ss)
# 178| char *dn; /* mounted directory name */
# 179| size_t dnl; /* strlen(dn) */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/dialects/linux/dmnt.c:177:1: warning[-Wold-style-definition]: old-style function definition
# 175|
# 176| static int
# 177|-> getmntdev(dn, dnl, s, ss)
# 178| char *dn; /* mounted directory name */
# 179| size_t dnl; /* strlen(dn) */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/dialects/linux/dmnt.c: scope_hint: In function ‘hash_mnt’
lsof-4.98.0-rh/dialects/linux/dmnt.c:389:1: warning[-Wold-style-definition]: old-style function definition
# 389 | hash_mnt(dn)
# | ^~~~~~~~
# 387|
# 388| static int
# 389|-> hash_mnt(dn)
# 390| char *dn; /* mount point directory name */
# 391| {
Error: COMPILER_WARNING:
lsof-4.98.0-rh/dialects/linux/dmnt.c:389:1: warning[-Wold-style-definition]: old-style function definition
# 387|
# 388| static int
# 389|-> hash_mnt(dn)
# 390| char *dn; /* mount point directory name */
# 391| {
Error: COMPILER_WARNING:
lsof-4.98.0-rh/dialects/linux/dnode.c: scope_hint: In function ‘find_pepti’
lsof-4.98.0-rh/dialects/linux/dnode.c:267:1: warning[-Wold-style-definition]: old-style function definition
# 267 | find_pepti(pid, lf, pp)
# | ^~~~~~~~~~
# 265|
# 266| pxinfo_t *
# 267|-> find_pepti(pid, lf, pp)
# 268| int pid; /* pid of the process owning lf */
# 269| struct lfile *lf; /* pipe's lfile */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/dialects/linux/dnode.c:267:1: warning[-Wold-style-definition]: old-style function definition
# 265|
# 266| pxinfo_t *
# 267|-> find_pepti(pid, lf, pp)
# 268| int pid; /* pid of the process owning lf */
# 269| struct lfile *lf; /* pipe's lfile */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/dialects/linux/dnode.c: scope_hint: In function ‘enter_ptmxi’
lsof-4.98.0-rh/dialects/linux/dnode.c:299:1: warning[-Wold-style-definition]: old-style function definition
# 299 | enter_ptmxi(mn)
# | ^~~~~~~~~~~
# 297|
# 298| void
# 299|-> enter_ptmxi(mn)
# 300| int mn; /* minor number of device */
# 301| {
Error: COMPILER_WARNING:
lsof-4.98.0-rh/dialects/linux/dnode.c:299:1: warning[-Wold-style-definition]: old-style function definition
# 297|
# 298| void
# 299|-> enter_ptmxi(mn)
# 300| int mn; /* minor number of device */
# 301| {
Error: COMPILER_WARNING:
lsof-4.98.0-rh/dialects/linux/dnode.c: scope_hint: In function ‘find_ptyepti’
lsof-4.98.0-rh/dialects/linux/dnode.c:344:1: warning[-Wold-style-definition]: old-style function definition
# 344 | find_ptyepti(pid, lf, m, pp)
# | ^~~~~~~~~~~~
# 342|
# 343| pxinfo_t *
# 344|-> find_ptyepti(pid, lf, m, pp)
# 345| int pid;
# 346| struct lfile *lf; /* pseudoterminal's lfile */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/dialects/linux/dnode.c:344:1: warning[-Wold-style-definition]: old-style function definition
# 342|
# 343| pxinfo_t *
# 344|-> find_ptyepti(pid, lf, m, pp)
# 345| int pid;
# 346| struct lfile *lf; /* pseudoterminal's lfile */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/dialects/linux/dnode.c: scope_hint: In function ‘is_pty_slave’
lsof-4.98.0-rh/dialects/linux/dnode.c:364:1: warning[-Wold-style-definition]: old-style function definition
# 364 | is_pty_slave(sm)
# | ^~~~~~~~~~~~
# 362|
# 363| int
# 364|-> is_pty_slave(sm)
# 365| int sm; /* slave major device number */
# 366| {
Error: COMPILER_WARNING:
lsof-4.98.0-rh/dialects/linux/dnode.c:364:1: warning[-Wold-style-definition]: old-style function definition
# 362|
# 363| int
# 364|-> is_pty_slave(sm)
# 365| int sm; /* slave major device number */
# 366| {
Error: COMPILER_WARNING:
lsof-4.98.0-rh/dialects/linux/dnode.c: scope_hint: In function ‘is_pty_ptmx’
lsof-4.98.0-rh/dialects/linux/dnode.c:394:1: warning[-Wold-style-definition]: old-style function definition
# 394 | is_pty_ptmx(dev)
# | ^~~~~~~~~~~
# 392|
# 393| int
# 394|-> is_pty_ptmx(dev)
# 395| dev_t dev; /* device number */
# 396| {
Error: COMPILER_WARNING:
lsof-4.98.0-rh/dialects/linux/dnode.c:394:1: warning[-Wold-style-definition]: old-style function definition
# 392|
# 393| int
# 394|-> is_pty_ptmx(dev)
# 395| dev_t dev; /* device number */
# 396| {
Error: COMPILER_WARNING:
lsof-4.98.0-rh/dialects/linux/dnode.c: scope_hint: In function ‘find_psxmqinfo’
lsof-4.98.0-rh/dialects/linux/dnode.c:445:1: warning[-Wold-style-definition]: old-style function definition
# 445 | find_psxmqinfo(pid, lf, pp)
# | ^~~~~~~~~~~~~~
# 443|
# 444| pxinfo_t *
# 445|-> find_psxmqinfo(pid, lf, pp)
# 446| int pid; /* pid of the process owning lf */
# 447| struct lfile *lf; /* posix mq's lfile */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/dialects/linux/dnode.c:445:1: warning[-Wold-style-definition]: old-style function definition
# 443|
# 444| pxinfo_t *
# 445|-> find_psxmqinfo(pid, lf, pp)
# 446| int pid; /* pid of the process owning lf */
# 447| struct lfile *lf; /* posix mq's lfile */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/dialects/linux/dnode.c: scope_hint: In function ‘find_evtfdinfo’
lsof-4.98.0-rh/dialects/linux/dnode.c:496:1: warning[-Wold-style-definition]: old-style function definition
# 496 | find_evtfdinfo(pid, lf, pp)
# | ^~~~~~~~~~~~~~
# 494|
# 495| pxinfo_t *
# 496|-> find_evtfdinfo(pid, lf, pp)
# 497| int pid; /* pid of the process owning lf */
# 498| struct lfile *lf; /* eventfd's lfile */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/dialects/linux/dnode.c:496:1: warning[-Wold-style-definition]: old-style function definition
# 494|
# 495| pxinfo_t *
# 496|-> find_evtfdinfo(pid, lf, pp)
# 497| int pid; /* pid of the process owning lf */
# 498| struct lfile *lf; /* eventfd's lfile */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/dialects/linux/dnode.c: scope_hint: In function ‘get_fields’
lsof-4.98.0-rh/dialects/linux/dnode.c:514:1: warning[-Wold-style-definition]: old-style function definition
# 514 | get_fields(ln, sep, fr, eb, en)
# | ^~~~~~~~~~
# 512|
# 513| int
# 514|-> get_fields(ln, sep, fr, eb, en)
# 515| char *ln; /* input line */
# 516| char *sep; /* separator list */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/dialects/linux/dnode.c:514:1: warning[-Wold-style-definition]: old-style function definition
# 512|
# 513| int
# 514|-> get_fields(ln, sep, fr, eb, en)
# 515| char *ln; /* input line */
# 516| char *sep; /* separator list */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/dialects/linux/dnode.c: scope_hint: In function ‘get_locks’
lsof-4.98.0-rh/dialects/linux/dnode.c:618:1: warning[-Wold-style-definition]: old-style function definition
# 618 | get_locks(p)
# | ^~~~~~~~~
# 616|
# 617| void
# 618|-> get_locks(p)
# 619| char *p; /* /proc lock path */
# 620| {
Error: COMPILER_WARNING:
lsof-4.98.0-rh/dialects/linux/dnode.c:618:1: warning[-Wold-style-definition]: old-style function definition
# 616|
# 617| void
# 618|-> get_locks(p)
# 619| char *p; /* /proc lock path */
# 620| {
Error: COMPILER_WARNING:
lsof-4.98.0-rh/dialects/linux/dnode.c: scope_hint: In function ‘process_proc_node’
lsof-4.98.0-rh/dialects/linux/dnode.c:766:1: warning[-Wold-style-definition]: old-style function definition
# 766 | process_proc_node(p, pbr, s, ss, l, ls)
# | ^~~~~~~~~~~~~~~~~
# 764|
# 765| void
# 766|-> process_proc_node(p, pbr, s, ss, l, ls)
# 767| char *p; /* node's readlink() path */
# 768| char *pbr; /* node's path before readlink() */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/dialects/linux/dnode.c:766:1: warning[-Wold-style-definition]: old-style function definition
# 764|
# 765| void
# 766|-> process_proc_node(p, pbr, s, ss, l, ls)
# 767| char *p; /* node's readlink() path */
# 768| char *pbr; /* node's path before readlink() */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/dialects/linux/dproc.c: scope_hint: In function ‘cmp_cntx_eq’
lsof-4.98.0-rh/dialects/linux/dproc.c:146:1: warning[-Wold-style-definition]: old-style function definition
# 146 | cmp_cntx_eq(pcntx, ucntx)
# | ^~~~~~~~~~~
# 144|
# 145| static int
# 146|-> cmp_cntx_eq(pcntx, ucntx)
# 147| char *pcntx; /* program context */
# 148| char *ucntx; /* user supplied context */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/dialects/linux/dproc.c:146:1: warning[-Wold-style-definition]: old-style function definition
# 144|
# 145| static int
# 146|-> cmp_cntx_eq(pcntx, ucntx)
# 147| char *pcntx; /* program context */
# 148| char *ucntx; /* user supplied context */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/dialects/linux/dproc.c: scope_hint: In function ‘enter_cntx_arg’
lsof-4.98.0-rh/dialects/linux/dproc.c:159:1: warning[-Wold-style-definition]: old-style function definition
# 159 | enter_cntx_arg(cntx)
# | ^~~~~~~~~~~~~~
# 157|
# 158| int
# 159|-> enter_cntx_arg(cntx)
# 160| char *cntx; /* context */
# 161| {
Error: COMPILER_WARNING:
lsof-4.98.0-rh/dialects/linux/dproc.c:159:1: warning[-Wold-style-definition]: old-style function definition
# 157|
# 158| int
# 159|-> enter_cntx_arg(cntx)
# 160| char *cntx; /* context */
# 161| {
Error: COMPILER_WARNING:
lsof-4.98.0-rh/dialects/linux/dproc.c: scope_hint: In function ‘alloc_cbf’
lsof-4.98.0-rh/dialects/linux/dproc.c:196:1: warning[-Wold-style-definition]: old-style function definition
# 196 | alloc_cbf(len, cbf, cbfa)
# | ^~~~~~~~~
# 194|
# 195| static MALLOC_S
# 196|-> alloc_cbf(len, cbf, cbfa)
# 197| MALLOC_S len; /* required length */
# 198| char **cbf; /* current buffer */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/dialects/linux/dproc.c:196:1: warning[-Wold-style-definition]: old-style function definition
# 194|
# 195| static MALLOC_S
# 196|-> alloc_cbf(len, cbf, cbfa)
# 197| MALLOC_S len; /* required length */
# 198| char **cbf; /* current buffer */
Error: CPPCHECK_WARNING (CWE-401):
lsof-4.98.0-rh/dialects/linux/dproc.c:325: error[memleakOnRealloc]: Common realloc mistake: 'pidpath' nulled but not freed upon failure
# 323| if ((pidx + n + 1 + 1) > pidpathl) {
# 324| pidpathl = pidx + n + 1 + 1 + 64;
# 325|-> if (!(pidpath = (char *)realloc((MALLOC_P *)pidpath, pidpathl)))
# 326| {
# 327| (void) fprintf(stderr,
Error: CPPCHECK_WARNING (CWE-401):
lsof-4.98.0-rh/dialects/linux/dproc.c:397: error[memleakOnRealloc]: Common realloc mistake: 'tidpath' nulled but not freed upon failure
# 395| tidpathl = tx + 1 + n + 1 + 4 + 64;
# 396| if (tidpath)
# 397|-> tidpath = (char *)realloc((MALLOC_P *)tidpath,
# 398| tidpathl);
# 399| else
Error: COMPILER_WARNING:
lsof-4.98.0-rh/dialects/linux/dproc.c: scope_hint: In function ‘get_fdinfo’
lsof-4.98.0-rh/dialects/linux/dproc.c:458:1: warning[-Wold-style-definition]: old-style function definition
# 458 | get_fdinfo(p, msk, fi)
# | ^~~~~~~~~~
# 456|
# 457| static int
# 458|-> get_fdinfo(p, msk, fi)
# 459| char *p; /* path to fdinfo file */
# 460| int msk; /* mask for information type: e.g.,
Error: COMPILER_WARNING:
lsof-4.98.0-rh/dialects/linux/dproc.c:458:1: warning[-Wold-style-definition]: old-style function definition
# 456|
# 457| static int
# 458|-> get_fdinfo(p, msk, fi)
# 459| char *p; /* path to fdinfo file */
# 460| int msk; /* mask for information type: e.g.,
Error: COMPILER_WARNING:
lsof-4.98.0-rh/dialects/linux/dproc.c: scope_hint: In function ‘getlinksrc’
lsof-4.98.0-rh/dialects/linux/dproc.c:604:1: warning[-Wold-style-definition]: old-style function definition
# 604 | getlinksrc(ln, src, srcl, rest)
# | ^~~~~~~~~~
# 602|
# 603| static int
# 604|-> getlinksrc(ln, src, srcl, rest)
# 605| char *ln; /* link path */
# 606| char *src; /* link source path return address */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/dialects/linux/dproc.c:604:1: warning[-Wold-style-definition]: old-style function definition
# 602|
# 603| static int
# 604|-> getlinksrc(ln, src, srcl, rest)
# 605| char *ln; /* link path */
# 606| char *src; /* link source path return address */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/dialects/linux/dproc.c: scope_hint: In function ‘make_proc_path’
lsof-4.98.0-rh/dialects/linux/dproc.c:721:1: warning[-Wold-style-definition]: old-style function definition
# 721 | make_proc_path(pp, pl, np, nl, sf)
# | ^~~~~~~~~~~~~~
# 719| */
# 720| int
# 721|-> make_proc_path(pp, pl, np, nl, sf)
# 722| char *pp; /* path prefix -- e.g., /proc/<pid>/ */
# 723| int pl; /* strlen(pp) */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/dialects/linux/dproc.c:721:1: warning[-Wold-style-definition]: old-style function definition
# 719| */
# 720| int
# 721|-> make_proc_path(pp, pl, np, nl, sf)
# 722| char *pp; /* path prefix -- e.g., /proc/<pid>/ */
# 723| int pl; /* strlen(pp) */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/dialects/linux/dproc.c: scope_hint: In function ‘isefsys’
lsof-4.98.0-rh/dialects/linux/dproc.c:759:1: warning[-Wold-style-definition]: old-style function definition
# 759 | isefsys(path, type, l, rep, lfr)
# | ^~~~~~~
# 757|
# 758| static int
# 759|-> isefsys(path, type, l, rep, lfr)
# 760| char *path; /* path to file */
# 761| char *type; /* unknown file type */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/dialects/linux/dproc.c:759:1: warning[-Wold-style-definition]: old-style function definition
# 757|
# 758| static int
# 759|-> isefsys(path, type, l, rep, lfr)
# 760| char *path; /* path to file */
# 761| char *type; /* unknown file type */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/dialects/linux/dproc.c: scope_hint: In function ‘nm2id’
lsof-4.98.0-rh/dialects/linux/dproc.c:833:1: warning[-Wold-style-definition]: old-style function definition
# 833 | nm2id(nm, id, idl)
# | ^~~~~
# 831|
# 832| static int
# 833|-> nm2id(nm, id, idl)
# 834| char *nm; /* pointer to name */
# 835| int *id; /* pointer to ID receiver */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/dialects/linux/dproc.c:833:1: warning[-Wold-style-definition]: old-style function definition
# 831|
# 832| static int
# 833|-> nm2id(nm, id, idl)
# 834| char *nm; /* pointer to name */
# 835| int *id; /* pointer to ID receiver */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/dialects/linux/dproc.c: scope_hint: In function ‘open_proc_stream’
lsof-4.98.0-rh/dialects/linux/dproc.c:866:1: warning[-Wold-style-definition]: old-style function definition
# 866 | open_proc_stream(p, m, buf, sz, act)
# | ^~~~~~~~~~~~~~~~
# 864|
# 865| FILE *
# 866|-> open_proc_stream(p, m, buf, sz, act)
# 867| char *p; /* pointer to path to open */
# 868| char *m; /* pointer to mode -- e.g., "r" */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/dialects/linux/dproc.c:866:1: warning[-Wold-style-definition]: old-style function definition
# 864|
# 865| FILE *
# 866|-> open_proc_stream(p, m, buf, sz, act)
# 867| char *p; /* pointer to path to open */
# 868| char *m; /* pointer to mode -- e.g., "r" */
Error: GCC_ANALYZER_WARNING (CWE-775):
lsof-4.98.0-rh/dialects/linux/dproc.c:908:14: warning[-Wanalyzer-file-leak]: leak of FILE ‘open_proc_stream(p, "r", & vbuf, & vsz, 0)’
lsof-4.98.0-rh/dialects/linux/dproc.c:1445:1: enter_function: entry to ‘process_proc_map’
lsof-4.98.0-rh/dialects/linux/dproc.c:1473:20: call_function: calling ‘open_proc_stream’ from ‘process_proc_map’
lsof-4.98.0-rh/dialects/linux/dproc.c:1473:20: return_function: returning to ‘process_proc_map’ from ‘open_proc_stream’
lsof-4.98.0-rh/dialects/linux/dproc.c:1473:12: branch_false: following ‘false’ branch...
lsof-4.98.0-rh/dialects/linux/dproc.c:1477:29: branch_false: ...to here
lsof-4.98.0-rh/dialects/linux/dproc.c:1480:16: branch_true: following ‘true’ branch...
lsof-4.98.0-rh/dialects/linux/dproc.c:1481:17: branch_true: ...to here
lsof-4.98.0-rh/dialects/linux/dproc.c:1532:25: branch_false: following ‘false’ branch (when ‘i >= ns’)...
lsof-4.98.0-rh/dialects/linux/dproc.c:1536:16: branch_false: ...to here
lsof-4.98.0-rh/dialects/linux/dproc.c:1536:16: branch_false: following ‘false’ branch (when ‘i >= ns’)...
lsof-4.98.0-rh/dialects/linux/dproc.c:1541:17: branch_false: ...to here
lsof-4.98.0-rh/dialects/linux/dproc.c:1541:16: branch_true: following ‘true’ branch...
lsof-4.98.0-rh/dialects/linux/dproc.c:1542:21: branch_true: ...to here
lsof-4.98.0-rh/dialects/linux/dproc.c:1544:20: branch_false: following ‘false’ branch...
lsof-4.98.0-rh/dialects/linux/dproc.c:1547:46: branch_false: ...to here
lsof-4.98.0-rh/dialects/linux/dproc.c:908:14: danger: ‘open_proc_stream(p, "r", & vbuf, & vsz, 0)’ leaks here; was opened at [(4)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/3)
# 906| * Allocate a buffer for the stream, as required.
# 907| */
# 908|-> if (!*buf) {
# 909| if (!(*buf = (char *)malloc((MALLOC_S)tsz))) {
# 910| (void) fprintf(stderr,
Error: GCC_ANALYZER_WARNING (CWE-401):
lsof-4.98.0-rh/dialects/linux/dproc.c:908:14: warning[-Wanalyzer-malloc-leak]: leak of ‘open_proc_stream(p, "r", & vbuf, & vsz, 0)’
lsof-4.98.0-rh/dialects/linux/dproc.c:1445:1: enter_function: entry to ‘process_proc_map’
lsof-4.98.0-rh/dialects/linux/dproc.c:1473:20: call_function: calling ‘open_proc_stream’ from ‘process_proc_map’
lsof-4.98.0-rh/dialects/linux/dproc.c:1473:20: return_function: returning to ‘process_proc_map’ from ‘open_proc_stream’
lsof-4.98.0-rh/dialects/linux/dproc.c:1473:12: branch_false: following ‘false’ branch...
lsof-4.98.0-rh/dialects/linux/dproc.c:1477:29: branch_false: ...to here
lsof-4.98.0-rh/dialects/linux/dproc.c:1480:16: branch_true: following ‘true’ branch...
lsof-4.98.0-rh/dialects/linux/dproc.c:1481:17: branch_true: ...to here
lsof-4.98.0-rh/dialects/linux/dproc.c:1532:25: branch_false: following ‘false’ branch (when ‘i >= ns’)...
lsof-4.98.0-rh/dialects/linux/dproc.c:1536:16: branch_false: ...to here
lsof-4.98.0-rh/dialects/linux/dproc.c:1536:16: branch_false: following ‘false’ branch (when ‘i >= ns’)...
lsof-4.98.0-rh/dialects/linux/dproc.c:1541:17: branch_false: ...to here
lsof-4.98.0-rh/dialects/linux/dproc.c:1541:16: branch_true: following ‘true’ branch...
lsof-4.98.0-rh/dialects/linux/dproc.c:1542:21: branch_true: ...to here
lsof-4.98.0-rh/dialects/linux/dproc.c:1544:20: branch_false: following ‘false’ branch...
lsof-4.98.0-rh/dialects/linux/dproc.c:1547:46: branch_false: ...to here
lsof-4.98.0-rh/dialects/linux/dproc.c:908:14: danger: ‘open_proc_stream(p, "r", & vbuf, & vsz, 0)’ leaks here; was allocated at [(4)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/3)
# 906| * Allocate a buffer for the stream, as required.
# 907| */
# 908|-> if (!*buf) {
# 909| if (!(*buf = (char *)malloc((MALLOC_S)tsz))) {
# 910| (void) fprintf(stderr,
Error: COMPILER_WARNING:
lsof-4.98.0-rh/dialects/linux/dproc.c: scope_hint: In function ‘process_id’
lsof-4.98.0-rh/dialects/linux/dproc.c:937:1: warning[-Wold-style-definition]: old-style function definition
# 937 | process_id(idp, idpl, cmd, uid, pid, ppid, pgid, tid, tcmd)
# | ^~~~~~~~~~
# 935|
# 936| static int
# 937|-> process_id(idp, idpl, cmd, uid, pid, ppid, pgid, tid, tcmd)
# 938| char *idp; /* pointer to ID's path */
# 939| int idpl; /* pointer to ID's path length */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/dialects/linux/dproc.c:937:1: warning[-Wold-style-definition]: old-style function definition
# 935|
# 936| static int
# 937|-> process_id(idp, idpl, cmd, uid, pid, ppid, pgid, tid, tcmd)
# 938| char *idp; /* pointer to ID's path */
# 939| int idpl; /* pointer to ID's path length */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/dialects/linux/dproc.c: scope_hint: In function ‘compare_mntns’
lsof-4.98.0-rh/dialects/linux/dproc.c:1417:1: warning[-Wold-style-definition]: old-style function definition
# 1417 | compare_mntns(pid)
# | ^~~~~~~~~~~~~
# 1415|
# 1416| static int
# 1417|-> compare_mntns(pid)
# 1418| int pid; /* pid of the target process */
# 1419| {
Error: COMPILER_WARNING:
lsof-4.98.0-rh/dialects/linux/dproc.c:1417:1: warning[-Wold-style-definition]: old-style function definition
# 1415|
# 1416| static int
# 1417|-> compare_mntns(pid)
# 1418| int pid; /* pid of the target process */
# 1419| {
Error: CPPCHECK_WARNING (CWE-401):
lsof-4.98.0-rh/dialects/linux/dsock.c:2474: error[memleakOnRealloc]: Common realloc mistake: 'la' nulled but not freed upon failure
# 2472| len = strlen(ta);
# 2473| plen = strlen(la);
# 2474|-> if (!(la=(char *)realloc((MALLOC_P *)la,plen+len+2))
# 2475| ) {
# 2476| (void) fprintf(stderr,
Error: CPPCHECK_WARNING (CWE-401):
lsof-4.98.0-rh/dialects/linux/dsock.c:2503: error[memleakOnRealloc]: Common realloc mistake: 'ra' nulled but not freed upon failure
# 2501| len = strlen(ta);
# 2502| plen = strlen(ra);
# 2503|-> if (!(ra=(char *)realloc((MALLOC_P *)ra,plen+len+2))
# 2504| ) {
# 2505| (void) fprintf(stderr,
Error: COMPILER_WARNING:
lsof-4.98.0-rh/main.c: scope_hint: In function ‘main’
lsof-4.98.0-rh/main.c:57:1: warning[-Wold-style-definition]: old-style function definition
# 57 | main(argc, argv)
# | ^~~~
# 55|
# 56| int
# 57|-> main(argc, argv)
# 58| int argc;
# 59| char *argv[];
Error: COMPILER_WARNING:
lsof-4.98.0-rh/main.c:57:1: warning[-Wold-style-definition]: old-style function definition
# 55|
# 56| int
# 57|-> main(argc, argv)
# 58| int argc;
# 59| char *argv[];
Error: CPPCHECK_WARNING (CWE-401):
lsof-4.98.0-rh/main.c:1177: error[memleakOnRealloc]: Common realloc mistake: 'Suid' nulled but not freed upon failure
# 1175| */
# 1176| if (Suid && Nuid && Nuid < Mxuid) {
# 1177|-> if (!(Suid = (struct seluid *)realloc((MALLOC_P *)Suid,
# 1178| (MALLOC_S)(sizeof(struct seluid) * Nuid))))
# 1179| {
Error: COMPILER_WARNING:
lsof-4.98.0-rh/main.c: scope_hint: In function ‘GetOpt’
lsof-4.98.0-rh/main.c:1862:1: warning[-Wold-style-definition]: old-style function definition
# 1862 | GetOpt(ct, opt, rules, err)
# | ^~~~~~
# 1860|
# 1861| static int
# 1862|-> GetOpt(ct, opt, rules, err)
# 1863| int ct; /* option count */
# 1864| char *opt[]; /* options */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/main.c:1862:1: warning[-Wold-style-definition]: old-style function definition
# 1860|
# 1861| static int
# 1862|-> GetOpt(ct, opt, rules, err)
# 1863| int ct; /* option count */
# 1864| char *opt[]; /* options */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/main.c: scope_hint: In function ‘sv_fmt_str’
lsof-4.98.0-rh/main.c:1983:1: warning[-Wold-style-definition]: old-style function definition
# 1983 | sv_fmt_str(f)
# | ^~~~~~~~~~
# 1981|
# 1982| static char *
# 1983|-> sv_fmt_str(f)
# 1984| char *f; /* format string */
# 1985| {
Error: COMPILER_WARNING:
lsof-4.98.0-rh/main.c:1983:1: warning[-Wold-style-definition]: old-style function definition
# 1981|
# 1982| static char *
# 1983|-> sv_fmt_str(f)
# 1984| char *f; /* format string */
# 1985| {
Error: COMPILER_WARNING:
lsof-4.98.0-rh/misc.c: scope_hint: In function ‘compdev’
lsof-4.98.0-rh/misc.c:213:1: warning[-Wold-style-definition]: old-style function definition
# 213 | compdev(a1, a2)
# | ^~~~~~~
# 211|
# 212| int
# 213|-> compdev(a1, a2)
# 214| COMP_P *a1, *a2;
# 215| {
Error: COMPILER_WARNING:
lsof-4.98.0-rh/misc.c:213:1: warning[-Wold-style-definition]: old-style function definition
# 211|
# 212| int
# 213|-> compdev(a1, a2)
# 214| COMP_P *a1, *a2;
# 215| {
Error: COMPILER_WARNING:
lsof-4.98.0-rh/misc.c: scope_hint: In function ‘doinchild’
lsof-4.98.0-rh/misc.c:236:1: warning[-Wold-style-definition]: old-style function definition
# 236 | doinchild(fn, fp, rbuf, rbln)
# | ^~~~~~~~~
# 234|
# 235| static int
# 236|-> doinchild(fn, fp, rbuf, rbln)
# 237| int (*fn)(char *, char *, int); /* function to perform */
# 238| char *fp; /* function parameter */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/misc.c:236:1: warning[-Wold-style-definition]: old-style function definition
# 234|
# 235| static int
# 236|-> doinchild(fn, fp, rbuf, rbln)
# 237| int (*fn)(char *, char *, int); /* function to perform */
# 238| char *fp; /* function parameter */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/misc.c: scope_hint: In function ‘dolstat’
lsof-4.98.0-rh/misc.c:437:1: warning[-Wold-style-definition]: old-style function definition
# 437 | dolstat(path, rbuf, rbln)
# | ^~~~~~~
# 435|
# 436| static int
# 437|-> dolstat(path, rbuf, rbln)
# 438| char *path; /* path */
# 439| char *rbuf; /* response buffer */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/misc.c:437:1: warning[-Wold-style-definition]: old-style function definition
# 435|
# 436| static int
# 437|-> dolstat(path, rbuf, rbln)
# 438| char *path; /* path */
# 439| char *rbuf; /* response buffer */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/misc.c: scope_hint: In function ‘doreadlink’
lsof-4.98.0-rh/misc.c:454:1: warning[-Wold-style-definition]: old-style function definition
# 454 | doreadlink(path, rbuf, rbln)
# | ^~~~~~~~~~
# 452|
# 453| static int
# 454|-> doreadlink(path, rbuf, rbln)
# 455| char *path; /* path */
# 456| char *rbuf; /* response buffer */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/misc.c:454:1: warning[-Wold-style-definition]: old-style function definition
# 452|
# 453| static int
# 454|-> doreadlink(path, rbuf, rbln)
# 455| char *path; /* path */
# 456| char *rbuf; /* response buffer */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/misc.c: scope_hint: In function ‘dostat’
lsof-4.98.0-rh/misc.c:468:1: warning[-Wold-style-definition]: old-style function definition
# 468 | dostat(path, rbuf, rbln)
# | ^~~~~~
# 466|
# 467| static int
# 468|-> dostat(path, rbuf, rbln)
# 469| char *path; /* path */
# 470| char *rbuf; /* response buffer */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/misc.c:468:1: warning[-Wold-style-definition]: old-style function definition
# 466|
# 467| static int
# 468|-> dostat(path, rbuf, rbln)
# 469| char *path; /* path */
# 470| char *rbuf; /* response buffer */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/misc.c: scope_hint: In function ‘enter_dev_ch’
lsof-4.98.0-rh/misc.c:505:1: warning[-Wold-style-definition]: old-style function definition
# 505 | enter_dev_ch(m)
# | ^~~~~~~~~~~~
# 503|
# 504| void
# 505|-> enter_dev_ch(m)
# 506| char *m;
# 507| {
Error: COMPILER_WARNING:
lsof-4.98.0-rh/misc.c:505:1: warning[-Wold-style-definition]: old-style function definition
# 503|
# 504| void
# 505|-> enter_dev_ch(m)
# 506| char *m;
# 507| {
Error: COMPILER_WARNING:
lsof-4.98.0-rh/misc.c: scope_hint: In function ‘enter_IPstate’
lsof-4.98.0-rh/misc.c:529:1: warning[-Wold-style-definition]: old-style function definition
# 529 | enter_IPstate(ty, nm, nr)
# | ^~~~~~~~~~~~~
# 527|
# 528| void
# 529|-> enter_IPstate(ty, nm, nr)
# 530| char *ty; /* type -- TCP or UDP */
# 531| char *nm; /* state name (may be NULL) */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/misc.c:529:1: warning[-Wold-style-definition]: old-style function definition
# 527|
# 528| void
# 529|-> enter_IPstate(ty, nm, nr)
# 530| char *ty; /* type -- TCP or UDP */
# 531| char *nm; /* state name (may be NULL) */
Error: CPPCHECK_WARNING (CWE-401):
lsof-4.98.0-rh/misc.c:572: error[memleakOnRealloc]: Common realloc mistake: 'UdpSt' nulled but not freed upon failure
# 570| if (UdpNstates < UdpStAlloc) {
# 571| len = (MALLOC_S)(UdpNstates * sizeof(char *));
# 572|-> if (!(UdpSt = (char **)realloc((MALLOC_P *)UdpSt, len)))
# 573| {
# 574| (void) fprintf(stderr,
Error: CPPCHECK_WARNING (CWE-401):
lsof-4.98.0-rh/misc.c:589: error[memleakOnRealloc]: Common realloc mistake: 'TcpSt' nulled but not freed upon failure
# 587| if (TcpNstates < TcpStAlloc) {
# 588| len = (MALLOC_S)(TcpNstates * sizeof(char *));
# 589|-> if (!(TcpSt = (char **)realloc((MALLOC_P *)TcpSt, len)))
# 590| {
# 591| (void) fprintf(stderr,
Error: CPPCHECK_WARNING (CWE-401):
lsof-4.98.0-rh/misc.c:639: error[memleakOnRealloc]: Common realloc mistake: 'UdpSt' nulled but not freed upon failure
# 637| len = (MALLOC_S)(al * sizeof(char *));
# 638| if (tx) {
# 639|-> if (!(UdpSt = (char **)realloc((MALLOC_P *)UdpSt, len)))
# 640| goto no_IP_space;
# 641| UdpStAlloc = al;
Error: CPPCHECK_WARNING (CWE-401):
lsof-4.98.0-rh/misc.c:643: error[memleakOnRealloc]: Common realloc mistake: 'TcpSt' nulled but not freed upon failure
# 641| UdpStAlloc = al;
# 642| } else {
# 643|-> if (!(TcpSt = (char **)realloc((MALLOC_P *)TcpSt, len)))
# 644| goto no_IP_space;
# 645| TcpStAlloc = al;
Error: CPPCHECK_WARNING (CWE-401):
lsof-4.98.0-rh/misc.c:685: error[memleakOnRealloc]: Common realloc mistake: 'UdpSt' nulled but not freed upon failure
# 683| if (tx) {
# 684| if (UdpSt)
# 685|-> UdpSt = (char **)realloc((MALLOC_P *)UdpSt, len);
# 686| else
# 687| UdpSt = (char **)malloc(len);
Error: CPPCHECK_WARNING (CWE-401):
lsof-4.98.0-rh/misc.c:699: error[memleakOnRealloc]: Common realloc mistake: 'TcpSt' nulled but not freed upon failure
# 697| } else {
# 698| if (TcpSt)
# 699|-> TcpSt = (char **)realloc((MALLOC_P *)TcpSt, len);
# 700| else
# 701| TcpSt = (char **)malloc(len);
Error: COMPILER_WARNING:
lsof-4.98.0-rh/misc.c: scope_hint: In function ‘enter_nm’
lsof-4.98.0-rh/misc.c:751:1: warning[-Wold-style-definition]: old-style function definition
# 751 | enter_nm(m)
# | ^~~~~~~~
# 749|
# 750| void
# 751|-> enter_nm(m)
# 752| char *m;
# 753| {
Error: COMPILER_WARNING:
lsof-4.98.0-rh/misc.c:751:1: warning[-Wold-style-definition]: old-style function definition
# 749|
# 750| void
# 751|-> enter_nm(m)
# 752| char *m;
# 753| {
Error: COMPILER_WARNING:
lsof-4.98.0-rh/misc.c: scope_hint: In function ‘Exit’
lsof-4.98.0-rh/misc.c:775:1: warning[-Wold-style-definition]: old-style function definition
# 775 | Exit(xv)
# | ^~~~
# 773|
# 774| void
# 775|-> Exit(xv)
# 776| enum ExitStatus xv; /* exit() value */
# 777| {
Error: COMPILER_WARNING:
lsof-4.98.0-rh/misc.c:775:1: warning[-Wold-style-definition]: old-style function definition
# 773|
# 774| void
# 775|-> Exit(xv)
# 776| enum ExitStatus xv; /* exit() value */
# 777| {
Error: COMPILER_WARNING:
lsof-4.98.0-rh/misc.c: scope_hint: In function ‘handleint’
lsof-4.98.0-rh/misc.c:843:1: warning[-Wold-style-definition]: old-style function definition
# 843 | handleint(sig)
# | ^~~~~~~~~
# 841| /* ARGSUSED */
# 842|
# 843|-> handleint(sig)
# 844| int sig;
# 845| {
Error: COMPILER_WARNING:
lsof-4.98.0-rh/misc.c:843:1: warning[-Wold-style-definition]: old-style function definition
# 841| /* ARGSUSED */
# 842|
# 843|-> handleint(sig)
# 844| int sig;
# 845| {
Error: COMPILER_WARNING:
lsof-4.98.0-rh/misc.c: scope_hint: In function ‘hashbyname’
lsof-4.98.0-rh/misc.c:855:1: warning[-Wold-style-definition]: old-style function definition
# 855 | hashbyname(nm, mod)
# | ^~~~~~~~~~
# 853|
# 854| int
# 855|-> hashbyname(nm, mod)
# 856| char *nm; /* pointer to NUL-terminated name */
# 857| int mod; /* hash modulus */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/misc.c:855:1: warning[-Wold-style-definition]: old-style function definition
# 853|
# 854| int
# 855|-> hashbyname(nm, mod)
# 856| char *nm; /* pointer to NUL-terminated name */
# 857| int mod; /* hash modulus */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/misc.c: scope_hint: In function ‘is_nw_addr’
lsof-4.98.0-rh/misc.c:875:1: warning[-Wold-style-definition]: old-style function definition
# 875 | is_nw_addr(ia, p, af)
# | ^~~~~~~~~~
# 873|
# 874| int
# 875|-> is_nw_addr(ia, p, af)
# 876| unsigned char *ia; /* Internet address */
# 877| int p; /* port */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/misc.c:875:1: warning[-Wold-style-definition]: old-style function definition
# 873|
# 874| int
# 875|-> is_nw_addr(ia, p, af)
# 876| unsigned char *ia; /* Internet address */
# 877| int p; /* port */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/misc.c: scope_hint: In function ‘mkstrcpy’
lsof-4.98.0-rh/misc.c:942:1: warning[-Wold-style-definition]: old-style function definition
# 942 | mkstrcpy(src, rlp)
# | ^~~~~~~~
# 940|
# 941| char *
# 942|-> mkstrcpy(src, rlp)
# 943| char *src; /* source */
# 944| MALLOC_S *rlp; /* returned length pointer (optional)
Error: COMPILER_WARNING:
lsof-4.98.0-rh/misc.c:942:1: warning[-Wold-style-definition]: old-style function definition
# 940|
# 941| char *
# 942|-> mkstrcpy(src, rlp)
# 943| char *src; /* source */
# 944| MALLOC_S *rlp; /* returned length pointer (optional)
Error: COMPILER_WARNING:
lsof-4.98.0-rh/misc.c: scope_hint: In function ‘mkstrcat’
lsof-4.98.0-rh/misc.c:974:1: warning[-Wold-style-definition]: old-style function definition
# 974 | mkstrcat(s1, l1, s2, l2, s3, l3, clp)
# | ^~~~~~~~
# 972|
# 973| char *
# 974|-> mkstrcat(s1, l1, s2, l2, s3, l3, clp)
# 975| char *s1; /* source string 1 */
# 976| int l1; /* length of string 1 (-1 if none) */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/misc.c:974:1: warning[-Wold-style-definition]: old-style function definition
# 972|
# 973| char *
# 974|-> mkstrcat(s1, l1, s2, l2, s3, l3, clp)
# 975| char *s1; /* source string 1 */
# 976| int l1; /* length of string 1 (-1 if none) */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/misc.c: scope_hint: In function ‘is_readable’
lsof-4.98.0-rh/misc.c:1028:1: warning[-Wold-style-definition]: old-style function definition
# 1028 | is_readable(path, msg)
# | ^~~~~~~~~~~
# 1026|
# 1027| int
# 1028|-> is_readable(path, msg)
# 1029| char *path; /* file path */
# 1030| int msg; /* issue warning message if 1 */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/misc.c:1028:1: warning[-Wold-style-definition]: old-style function definition
# 1026|
# 1027| int
# 1028|-> is_readable(path, msg)
# 1029| char *path; /* file path */
# 1030| int msg; /* issue warning message if 1 */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/misc.c: scope_hint: In function ‘lstatsafely’
lsof-4.98.0-rh/misc.c:1046:1: warning[-Wold-style-definition]: old-style function definition
# 1046 | lstatsafely(path, buf)
# | ^~~~~~~~~~~
# 1044|
# 1045| int
# 1046|-> lstatsafely(path, buf)
# 1047| char *path; /* file path */
# 1048| struct stat *buf; /* stat buffer address */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/misc.c:1046:1: warning[-Wold-style-definition]: old-style function definition
# 1044|
# 1045| int
# 1046|-> lstatsafely(path, buf)
# 1047| char *path; /* file path */
# 1048| struct stat *buf; /* stat buffer address */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/misc.c: scope_hint: In function ‘Readlink’
lsof-4.98.0-rh/misc.c:1067:1: warning[-Wold-style-definition]: old-style function definition
# 1067 | Readlink(arg)
# | ^~~~~~~~
# 1065|
# 1066| char *
# 1067|-> Readlink(arg)
# 1068| char *arg; /* argument to be interpreted */
# 1069| {
Error: COMPILER_WARNING:
lsof-4.98.0-rh/misc.c:1067:1: warning[-Wold-style-definition]: old-style function definition
# 1065|
# 1066| char *
# 1067|-> Readlink(arg)
# 1068| char *arg; /* argument to be interpreted */
# 1069| {
Error: COMPILER_WARNING:
lsof-4.98.0-rh/misc.c: scope_hint: In function ‘safepup’
lsof-4.98.0-rh/misc.c:1360:1: warning[-Wold-style-definition]: old-style function definition
# 1360 | safepup(c, cl)
# | ^~~~~~~
# 1358|
# 1359| char *
# 1360|-> safepup(c, cl)
# 1361| unsigned int c; /* unprintable (i.e., !isprint())
# 1362| * character and '\\' */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/misc.c:1360:1: warning[-Wold-style-definition]: old-style function definition
# 1358|
# 1359| char *
# 1360|-> safepup(c, cl)
# 1361| unsigned int c; /* unprintable (i.e., !isprint())
# 1362| * character and '\\' */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/misc.c: scope_hint: In function ‘safestrlen’
lsof-4.98.0-rh/misc.c:1415:1: warning[-Wold-style-definition]: old-style function definition
# 1415 | safestrlen(sp, flags)
# | ^~~~~~~~~~
# 1413|
# 1414| int
# 1415|-> safestrlen(sp, flags)
# 1416| char *sp; /* string pointer */
# 1417| int flags; /* flags:
Error: COMPILER_WARNING:
lsof-4.98.0-rh/misc.c:1415:1: warning[-Wold-style-definition]: old-style function definition
# 1413|
# 1414| int
# 1415|-> safestrlen(sp, flags)
# 1416| char *sp; /* string pointer */
# 1417| int flags; /* flags:
Error: COMPILER_WARNING:
lsof-4.98.0-rh/misc.c: scope_hint: In function ‘safestrprt’
lsof-4.98.0-rh/misc.c:1452:1: warning[-Wold-style-definition]: old-style function definition
# 1452 | safestrprt(sp, fs, flags)
# | ^~~~~~~~~~
# 1450|
# 1451| void
# 1452|-> safestrprt(sp, fs, flags)
# 1453| char *sp; /* string to print pointer pointer */
# 1454| FILE *fs; /* destination stream -- e.g., stderr
Error: COMPILER_WARNING:
lsof-4.98.0-rh/misc.c:1452:1: warning[-Wold-style-definition]: old-style function definition
# 1450|
# 1451| void
# 1452|-> safestrprt(sp, fs, flags)
# 1453| char *sp; /* string to print pointer pointer */
# 1454| FILE *fs; /* destination stream -- e.g., stderr
Error: COMPILER_WARNING:
lsof-4.98.0-rh/misc.c: scope_hint: In function ‘safestrprtn’
lsof-4.98.0-rh/misc.c:1530:1: warning[-Wold-style-definition]: old-style function definition
# 1530 | safestrprtn(sp, len, fs, flags)
# | ^~~~~~~~~~~
# 1528|
# 1529| void
# 1530|-> safestrprtn(sp, len, fs, flags)
# 1531| char *sp; /* string to print pointer pointer */
# 1532| int len; /* safe number of characters to
Error: COMPILER_WARNING:
lsof-4.98.0-rh/misc.c:1530:1: warning[-Wold-style-definition]: old-style function definition
# 1528|
# 1529| void
# 1530|-> safestrprtn(sp, len, fs, flags)
# 1531| char *sp; /* string to print pointer pointer */
# 1532| int len; /* safe number of characters to
Error: COMPILER_WARNING:
lsof-4.98.0-rh/misc.c: scope_hint: In function ‘statsafely’
lsof-4.98.0-rh/misc.c:1586:1: warning[-Wold-style-definition]: old-style function definition
# 1586 | statsafely(path, buf)
# | ^~~~~~~~~~
# 1584|
# 1585| int
# 1586|-> statsafely(path, buf)
# 1587| char *path; /* file path */
# 1588| struct stat *buf; /* stat buffer address */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/misc.c:1586:1: warning[-Wold-style-definition]: old-style function definition
# 1584|
# 1585| int
# 1586|-> statsafely(path, buf)
# 1587| char *path; /* file path */
# 1588| struct stat *buf; /* stat buffer address */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/misc.c: scope_hint: In function ‘stkdir’
lsof-4.98.0-rh/misc.c:1607:1: warning[-Wold-style-definition]: old-style function definition
# 1607 | stkdir(p)
# | ^~~~~~
# 1605|
# 1606| void
# 1607|-> stkdir(p)
# 1608| char *p; /* directory path */
# 1609| {
Error: COMPILER_WARNING:
lsof-4.98.0-rh/misc.c:1607:1: warning[-Wold-style-definition]: old-style function definition
# 1605|
# 1606| void
# 1607|-> stkdir(p)
# 1608| char *p; /* directory path */
# 1609| {
Error: CPPCHECK_WARNING (CWE-401):
lsof-4.98.0-rh/misc.c:1620: error[memleakOnRealloc]: Common realloc mistake: 'Dstk' nulled but not freed upon failure
# 1618| Dstk = (char **)malloc(len);
# 1619| else
# 1620|-> Dstk = (char **)realloc((MALLOC_P *)Dstk, len);
# 1621| if (!Dstk) {
# 1622| (void) fprintf(stderr,
Error: COMPILER_WARNING:
lsof-4.98.0-rh/misc.c: scope_hint: In function ‘x2dev’
lsof-4.98.0-rh/misc.c:1645:1: warning[-Wold-style-definition]: old-style function definition
# 1645 | x2dev(s, d)
# | ^~~~~
# 1643|
# 1644| char *
# 1645|-> x2dev(s, d)
# 1646| char *s; /* ASCII string */
# 1647| dev_t *d; /* device receptacle */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/misc.c:1645:1: warning[-Wold-style-definition]: old-style function definition
# 1643|
# 1644| char *
# 1645|-> x2dev(s, d)
# 1646| char *s; /* ASCII string */
# 1647| dev_t *d; /* device receptacle */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/node.c: scope_hint: In function ‘print_kptr’
lsof-4.98.0-rh/node.c:40:1: warning[-Wold-style-definition]: old-style function definition
# 40 | print_kptr(kp, buf, bufl)
# | ^~~~~~~~~~
# 38|
# 39| char *
# 40|-> print_kptr(kp, buf, bufl)
# 41| KA_T kp; /* kernel pointer address */
# 42| char *buf; /* optional destination buffer */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/node.c:40:1: warning[-Wold-style-definition]: old-style function definition
# 38|
# 39| char *
# 40|-> print_kptr(kp, buf, bufl)
# 41| KA_T kp; /* kernel pointer address */
# 42| char *buf; /* optional destination buffer */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/print.c: scope_hint: In function ‘endnm’
lsof-4.98.0-rh/print.c:100:1: warning[-Wold-style-definition]: old-style function definition
# 100 | endnm(sz)
# | ^~~~~
# 98|
# 99| char *
# 100|-> endnm(sz)
# 101| size_t *sz; /* returned remaining size */
# 102| {
Error: COMPILER_WARNING:
lsof-4.98.0-rh/print.c:100:1: warning[-Wold-style-definition]: old-style function definition
# 98|
# 99| char *
# 100|-> endnm(sz)
# 101| size_t *sz; /* returned remaining size */
# 102| {
Error: COMPILER_WARNING:
lsof-4.98.0-rh/print.c: scope_hint: In function ‘gethostnm’
lsof-4.98.0-rh/print.c:366:1: warning[-Wold-style-definition]: old-style function definition
# 366 | gethostnm(ia, af)
# | ^~~~~~~~~
# 364|
# 365| char *
# 366|-> gethostnm(ia, af)
# 367| unsigned char *ia; /* Internet address */
# 368| int af; /* address family -- e.g., AF_INET
Error: COMPILER_WARNING:
lsof-4.98.0-rh/print.c:366:1: warning[-Wold-style-definition]: old-style function definition
# 364|
# 365| char *
# 366|-> gethostnm(ia, af)
# 367| unsigned char *ia; /* Internet address */
# 368| int af; /* address family -- e.g., AF_INET
Error: COMPILER_WARNING:
lsof-4.98.0-rh/print.c: scope_hint: In function ‘lkup_port’
lsof-4.98.0-rh/print.c:471:1: warning[-Wold-style-definition]: old-style function definition
# 471 | lkup_port(p, pr, src)
# | ^~~~~~~~~
# 469|
# 470| static char *
# 471|-> lkup_port(p, pr, src)
# 472| int p; /* port number */
# 473| int pr; /* protocol index: 0 = tcp, 1 = udp */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/print.c:471:1: warning[-Wold-style-definition]: old-style function definition
# 469|
# 470| static char *
# 471|-> lkup_port(p, pr, src)
# 472| int p; /* port number */
# 473| int pr; /* protocol index: 0 = tcp, 1 = udp */
Error: GCC_ANALYZER_WARNING (CWE-787):
lsof-4.98.0-rh/print.c:494:22: warning[-Wanalyzer-out-of-bounds]: buffer overflow
lsof-4.98.0-rh/print.c:2030:1: enter_function: entry to ‘printname’
lsof-4.98.0-rh/print.c:2058:17: call_function: calling ‘printinaddr’ from ‘printname’
# 492|
# 493| for (h = 0; h < nh; h++) {
# 494|-> if (!(Pth[h] = (struct porttab **)calloc(PORTHASHBUCKETS,
# 495| sizeof(struct porttab *))))
# 496| {
Error: COMPILER_WARNING:
lsof-4.98.0-rh/print.c: scope_hint: In function ‘lkup_svcnam’
lsof-4.98.0-rh/print.c:596:1: warning[-Wold-style-definition]: old-style function definition
# 596 | lkup_svcnam(h, p, pr, ss)
# | ^~~~~~~~~~~
# 594|
# 595| static char *
# 596|-> lkup_svcnam(h, p, pr, ss)
# 597| int h; /* porttab hash index */
# 598| int p; /* port number */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/print.c:596:1: warning[-Wold-style-definition]: old-style function definition
# 594|
# 595| static char *
# 596|-> lkup_svcnam(h, p, pr, ss)
# 597| int h; /* porttab hash index */
# 598| int p; /* port number */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/print.c: scope_hint: In function ‘printiproto’
lsof-4.98.0-rh/print.c:1375:1: warning[-Wold-style-definition]: old-style function definition
# 1375 | printiproto(p)
# | ^~~~~~~~~~~
# 1373|
# 1374| void
# 1375|-> printiproto(p)
# 1376| int p; /* protocol number */
# 1377| {
Error: COMPILER_WARNING:
lsof-4.98.0-rh/print.c:1375:1: warning[-Wold-style-definition]: old-style function definition
# 1373|
# 1374| void
# 1375|-> printiproto(p)
# 1376| int p; /* protocol number */
# 1377| {
Error: COMPILER_WARNING:
lsof-4.98.0-rh/print.c: scope_hint: In function ‘printname’
lsof-4.98.0-rh/print.c:2030:1: warning[-Wold-style-definition]: old-style function definition
# 2030 | printname(nl)
# | ^~~~~~~~~
# 2028|
# 2029| void
# 2030|-> printname(nl)
# 2031| int nl; /* NL status */
# 2032| {
Error: COMPILER_WARNING:
lsof-4.98.0-rh/print.c:2030:1: warning[-Wold-style-definition]: old-style function definition
# 2028|
# 2029| void
# 2030|-> printname(nl)
# 2031| int nl; /* NL status */
# 2032| {
Error: COMPILER_WARNING:
lsof-4.98.0-rh/print.c: scope_hint: In function ‘printrawaddr’
lsof-4.98.0-rh/print.c:2251:1: warning[-Wold-style-definition]: old-style function definition
# 2251 | printrawaddr(sa)
# | ^~~~~~~~~~~~
# 2249|
# 2250| void
# 2251|-> printrawaddr(sa)
# 2252| struct sockaddr *sa; /* socket address */
# 2253| {
Error: COMPILER_WARNING:
lsof-4.98.0-rh/print.c:2251:1: warning[-Wold-style-definition]: old-style function definition
# 2249|
# 2250| void
# 2251|-> printrawaddr(sa)
# 2252| struct sockaddr *sa; /* socket address */
# 2253| {
Error: COMPILER_WARNING:
lsof-4.98.0-rh/print.c: scope_hint: In function ‘printsockty’
lsof-4.98.0-rh/print.c:2282:1: warning[-Wold-style-definition]: old-style function definition
# 2282 | printsockty(ty)
# | ^~~~~~~~~~~
# 2280|
# 2281| char *
# 2282|-> printsockty(ty)
# 2283| int ty; /* socket type -- e.g., from so_type */
# 2284| {
Error: COMPILER_WARNING:
lsof-4.98.0-rh/print.c:2282:1: warning[-Wold-style-definition]: old-style function definition
# 2280|
# 2281| char *
# 2282|-> printsockty(ty)
# 2283| int ty; /* socket type -- e.g., from so_type */
# 2284| {
Error: COMPILER_WARNING:
lsof-4.98.0-rh/print.c: scope_hint: In function ‘printuid’
lsof-4.98.0-rh/print.c:2334:1: warning[-Wold-style-definition]: old-style function definition
# 2334 | printuid(uid, ty)
# | ^~~~~~~~
# 2332|
# 2333| char *
# 2334|-> printuid(uid, ty)
# 2335| UID_ARG uid; /* User IDentification number */
# 2336| int *ty; /* returned UID type pointer (NULL
Error: COMPILER_WARNING:
lsof-4.98.0-rh/print.c:2334:1: warning[-Wold-style-definition]: old-style function definition
# 2332|
# 2333| char *
# 2334|-> printuid(uid, ty)
# 2335| UID_ARG uid; /* User IDentification number */
# 2336| int *ty; /* returned UID type pointer (NULL
Error: COMPILER_WARNING:
lsof-4.98.0-rh/print.c: scope_hint: In function ‘printunkaf’
lsof-4.98.0-rh/print.c:2460:1: warning[-Wold-style-definition]: old-style function definition
# 2460 | printunkaf(fam, ty)
# | ^~~~~~~~~~
# 2458|
# 2459| void
# 2460|-> printunkaf(fam, ty)
# 2461| int fam; /* unknown address family */
# 2462| int ty; /* output type: 0 = terse; 1 = full */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/print.c:2460:1: warning[-Wold-style-definition]: old-style function definition
# 2458|
# 2459| void
# 2460|-> printunkaf(fam, ty)
# 2461| int fam; /* unknown address family */
# 2462| int ty; /* output type: 0 = terse; 1 = full */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/print.c: scope_hint: In function ‘update_portmap’
lsof-4.98.0-rh/print.c:2830:1: warning[-Wold-style-definition]: old-style function definition
# 2830 | update_portmap(pt, pn)
# | ^~~~~~~~~~~~~~
# 2828|
# 2829| static void
# 2830|-> update_portmap(pt, pn)
# 2831| struct porttab *pt; /* porttab entry */
# 2832| char *pn; /* port name */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/print.c:2830:1: warning[-Wold-style-definition]: old-style function definition
# 2828|
# 2829| static void
# 2830|-> update_portmap(pt, pn)
# 2831| struct porttab *pt; /* porttab entry */
# 2832| char *pn; /* port name */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/proc.c: scope_hint: In function ‘add_nma’
lsof-4.98.0-rh/proc.c:49:1: warning[-Wold-style-definition]: old-style function definition
# 49 | add_nma(cp, len)
# | ^~~~~~~
# 47|
# 48| void
# 49|-> add_nma(cp, len)
# 50| char *cp; /* string to add */
# 51| int len; /* string length */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/proc.c:49:1: warning[-Wold-style-definition]: old-style function definition
# 47|
# 48| void
# 49|-> add_nma(cp, len)
# 50| char *cp; /* string to add */
# 51| int len; /* string length */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/proc.c: scope_hint: In function ‘alloc_fflbuf’
lsof-4.98.0-rh/proc.c:90:1: warning[-Wold-style-definition]: old-style function definition
# 90 | alloc_fflbuf(bp, al, lr)
# | ^~~~~~~~~~~~
# 88|
# 89| static char *
# 90|-> alloc_fflbuf(bp, al, lr)
# 91| char **bp; /* current buffer pointer */
# 92| int *al; /* current allocated length */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/proc.c:90:1: warning[-Wold-style-definition]: old-style function definition
# 88|
# 89| static char *
# 90|-> alloc_fflbuf(bp, al, lr)
# 91| char **bp; /* current buffer pointer */
# 92| int *al; /* current allocated length */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/proc.c: scope_hint: In function ‘alloc_lfile’
lsof-4.98.0-rh/proc.c:120:1: warning[-Wold-style-definition]: old-style function definition
# 120 | alloc_lfile(nm, num)
# | ^~~~~~~~~~~
# 118|
# 119| void
# 120|-> alloc_lfile(nm, num)
# 121| char *nm; /* file descriptor name (may be NULL) */
# 122| int num; /* file descriptor number -- -1 if
Error: COMPILER_WARNING:
lsof-4.98.0-rh/proc.c:120:1: warning[-Wold-style-definition]: old-style function definition
# 118|
# 119| void
# 120|-> alloc_lfile(nm, num)
# 121| char *nm; /* file descriptor name (may be NULL) */
# 122| int num; /* file descriptor number -- -1 if
Error: COMPILER_WARNING:
lsof-4.98.0-rh/proc.c: scope_hint: In function ‘alloc_lproc’
lsof-4.98.0-rh/proc.c:274:1: warning[-Wold-style-definition]: old-style function definition
# 274 | alloc_lproc(pid, pgid, ppid, uid, cmd, pss, sf)
# | ^~~~~~~~~~~
# 272|
# 273| void
# 274|-> alloc_lproc(pid, pgid, ppid, uid, cmd, pss, sf)
# 275| int pid; /* Process ID */
# 276| int pgid; /* process group ID */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/proc.c:274:1: warning[-Wold-style-definition]: old-style function definition
# 272|
# 273| void
# 274|-> alloc_lproc(pid, pgid, ppid, uid, cmd, pss, sf)
# 275| int pid; /* Process ID */
# 276| int pgid; /* process group ID */
Error: CPPCHECK_WARNING (CWE-401):
lsof-4.98.0-rh/proc.c:297: error[memleakOnRealloc]: Common realloc mistake: 'Lproc' nulled but not freed upon failure
# 295| } else if ((Nlproc + 1) > sz) {
# 296| sz += LPROCINCR;
# 297|-> if (!(Lproc = (struct lproc *)realloc((MALLOC_P *)Lproc,
# 298| (MALLOC_S)(sz * sizeof(struct lproc)))))
# 299| {
Error: COMPILER_WARNING:
lsof-4.98.0-rh/proc.c: scope_hint: In function ‘ck_fd_status’
lsof-4.98.0-rh/proc.c:361:1: warning[-Wold-style-definition]: old-style function definition
# 361 | ck_fd_status(nm, num)
# | ^~~~~~~~~~~~
# 359|
# 360| extern int
# 361|-> ck_fd_status(nm, num)
# 362| char *nm; /* file descriptor name (may be NULL) */
# 363| int num; /* file descriptor number -- -1 if
Error: COMPILER_WARNING:
lsof-4.98.0-rh/proc.c:361:1: warning[-Wold-style-definition]: old-style function definition
# 359|
# 360| extern int
# 361|-> ck_fd_status(nm, num)
# 362| char *nm; /* file descriptor name (may be NULL) */
# 363| int num; /* file descriptor number -- -1 if
Error: COMPILER_WARNING:
lsof-4.98.0-rh/proc.c: scope_hint: In function ‘comppid’
lsof-4.98.0-rh/proc.c:411:1: warning[-Wold-style-definition]: old-style function definition
# 411 | comppid(a1, a2)
# | ^~~~~~~
# 409|
# 410| int
# 411|-> comppid(a1, a2)
# 412| COMP_P *a1, *a2;
# 413| {
Error: COMPILER_WARNING:
lsof-4.98.0-rh/proc.c:411:1: warning[-Wold-style-definition]: old-style function definition
# 409|
# 410| int
# 411|-> comppid(a1, a2)
# 412| COMP_P *a1, *a2;
# 413| {
Error: COMPILER_WARNING:
lsof-4.98.0-rh/proc.c: scope_hint: In function ‘ent_inaddr’
lsof-4.98.0-rh/proc.c:438:1: warning[-Wold-style-definition]: old-style function definition
# 438 | ent_inaddr(la, lp, fa, fp, af)
# | ^~~~~~~~~~
# 436|
# 437| void
# 438|-> ent_inaddr(la, lp, fa, fp, af)
# 439| unsigned char *la; /* local Internet address */
# 440| int lp; /* local port */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/proc.c:438:1: warning[-Wold-style-definition]: old-style function definition
# 436|
# 437| void
# 438|-> ent_inaddr(la, lp, fa, fp, af)
# 439| unsigned char *la; /* local Internet address */
# 440| int lp; /* local port */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/proc.c: scope_hint: In function ‘free_lproc’
lsof-4.98.0-rh/proc.c:544:1: warning[-Wold-style-definition]: old-style function definition
# 544 | free_lproc(lp)
# | ^~~~~~~~~~
# 542|
# 543| void
# 544|-> free_lproc(lp)
# 545| struct lproc *lp;
# 546| {
Error: COMPILER_WARNING:
lsof-4.98.0-rh/proc.c:544:1: warning[-Wold-style-definition]: old-style function definition
# 542|
# 543| void
# 544|-> free_lproc(lp)
# 545| struct lproc *lp;
# 546| {
Error: COMPILER_WARNING:
lsof-4.98.0-rh/proc.c: scope_hint: In function ‘is_cmd_excl’
lsof-4.98.0-rh/proc.c:591:1: warning[-Wold-style-definition]: old-style function definition
# 591 | is_cmd_excl(cmd, pss, sf)
# | ^~~~~~~~~~~
# 589|
# 590| int
# 591|-> is_cmd_excl(cmd, pss, sf)
# 592| char *cmd; /* command name */
# 593| short *pss; /* process state */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/proc.c:591:1: warning[-Wold-style-definition]: old-style function definition
# 589|
# 590| int
# 591|-> is_cmd_excl(cmd, pss, sf)
# 592| char *cmd; /* command name */
# 593| short *pss; /* process state */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/proc.c: scope_hint: In function ‘is_file_sel’
lsof-4.98.0-rh/proc.c:651:1: warning[-Wold-style-definition]: old-style function definition
# 651 | is_file_sel(lp, lf)
# | ^~~~~~~~~~~
# 649|
# 650| int
# 651|-> is_file_sel(lp, lf)
# 652| struct lproc *lp; /* lproc structure pointer */
# 653| struct lfile *lf; /* lfile structure pointer */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/proc.c:651:1: warning[-Wold-style-definition]: old-style function definition
# 649|
# 650| int
# 651|-> is_file_sel(lp, lf)
# 652| struct lproc *lp; /* lproc structure pointer */
# 653| struct lfile *lf; /* lfile structure pointer */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/proc.c: scope_hint: In function ‘is_proc_excl’
lsof-4.98.0-rh/proc.c:682:1: warning[-Wold-style-definition]: old-style function definition
# 682 | is_proc_excl(pid, pgid, uid, pss, sf, tid)
# | ^~~~~~~~~~~~
# 680|
# 681| #if defined(HASTASKS)
# 682|-> is_proc_excl(pid, pgid, uid, pss, sf, tid)
# 683| #else /* !defined(HASTASKS) */
# 684| is_proc_excl(pid, pgid, uid, pss, sf)
Error: COMPILER_WARNING:
lsof-4.98.0-rh/proc.c:682:1: warning[-Wold-style-definition]: old-style function definition
# 680|
# 681| #if defined(HASTASKS)
# 682|-> is_proc_excl(pid, pgid, uid, pss, sf, tid)
# 683| #else /* !defined(HASTASKS) */
# 684| is_proc_excl(pid, pgid, uid, pss, sf)
Error: COMPILER_WARNING:
lsof-4.98.0-rh/proc.c: scope_hint: In function ‘process_pinfo’
lsof-4.98.0-rh/proc.c:1006:1: warning[-Wold-style-definition]: old-style function definition
# 1006 | process_pinfo(f)
# | ^~~~~~~~~~~~~
# 1004|
# 1005| void
# 1006|-> process_pinfo(f)
# 1007| int f; /* function:
# 1008| * 0 == process selected pipe
Error: COMPILER_WARNING:
lsof-4.98.0-rh/proc.c:1006:1: warning[-Wold-style-definition]: old-style function definition
# 1004|
# 1005| void
# 1006|-> process_pinfo(f)
# 1007| int f; /* function:
# 1008| * 0 == process selected pipe
Error: COMPILER_WARNING:
lsof-4.98.0-rh/proc.c: scope_hint: In function ‘prt_pinfo’
lsof-4.98.0-rh/proc.c:1072:1: warning[-Wold-style-definition]: old-style function definition
# 1072 | prt_pinfo(pp, ps)
# | ^~~~~~~~~
# 1070|
# 1071| static void
# 1072|-> prt_pinfo(pp, ps)
# 1073| pxinfo_t *pp; /* peer info */
# 1074| int ps; /* processing status:
Error: COMPILER_WARNING:
lsof-4.98.0-rh/proc.c:1072:1: warning[-Wold-style-definition]: old-style function definition
# 1070|
# 1071| static void
# 1072|-> prt_pinfo(pp, ps)
# 1073| pxinfo_t *pp; /* peer info */
# 1074| int ps; /* processing status:
Error: COMPILER_WARNING:
lsof-4.98.0-rh/proc.c: scope_hint: In function ‘process_psxmqinfo’
lsof-4.98.0-rh/proc.c:1111:1: warning[-Wold-style-definition]: old-style function definition
# 1111 | process_psxmqinfo(f)
# | ^~~~~~~~~~~~~~~~~
# 1109|
# 1110| void
# 1111|-> process_psxmqinfo(f)
# 1112| int f; /* function:
# 1113| * 0 == process selected posix mq
Error: COMPILER_WARNING:
lsof-4.98.0-rh/proc.c:1111:1: warning[-Wold-style-definition]: old-style function definition
# 1109|
# 1110| void
# 1111|-> process_psxmqinfo(f)
# 1112| int f; /* function:
# 1113| * 0 == process selected posix mq
Error: COMPILER_WARNING:
lsof-4.98.0-rh/proc.c: scope_hint: In function ‘prt_psxmqinfo’
lsof-4.98.0-rh/proc.c:1178:1: warning[-Wold-style-definition]: old-style function definition
# 1178 | prt_psxmqinfo(pp, ps)
# | ^~~~~~~~~~~~~
# 1176|
# 1177| static void
# 1178|-> prt_psxmqinfo(pp, ps)
# 1179| pxinfo_t *pp; /* peer info */
# 1180| int ps; /* processing status:
Error: COMPILER_WARNING:
lsof-4.98.0-rh/proc.c:1178:1: warning[-Wold-style-definition]: old-style function definition
# 1176|
# 1177| static void
# 1178|-> prt_psxmqinfo(pp, ps)
# 1179| pxinfo_t *pp; /* peer info */
# 1180| int ps; /* processing status:
Error: COMPILER_WARNING:
lsof-4.98.0-rh/proc.c: scope_hint: In function ‘process_evtfdinfo’
lsof-4.98.0-rh/proc.c:1217:1: warning[-Wold-style-definition]: old-style function definition
# 1217 | process_evtfdinfo(f)
# | ^~~~~~~~~~~~~~~~~
# 1215|
# 1216| void
# 1217|-> process_evtfdinfo(f)
# 1218| int f; /* function:
# 1219| * 0 == process selected eventfd
Error: COMPILER_WARNING:
lsof-4.98.0-rh/proc.c:1217:1: warning[-Wold-style-definition]: old-style function definition
# 1215|
# 1216| void
# 1217|-> process_evtfdinfo(f)
# 1218| int f; /* function:
# 1219| * 0 == process selected eventfd
Error: COMPILER_WARNING:
lsof-4.98.0-rh/proc.c: scope_hint: In function ‘prt_evtfdinfo’
lsof-4.98.0-rh/proc.c:1284:1: warning[-Wold-style-definition]: old-style function definition
# 1284 | prt_evtfdinfo(pp, ps)
# | ^~~~~~~~~~~~~
# 1282|
# 1283| static void
# 1284|-> prt_evtfdinfo(pp, ps)
# 1285| pxinfo_t *pp; /* peer info */
# 1286| int ps; /* processing status:
Error: COMPILER_WARNING:
lsof-4.98.0-rh/proc.c:1284:1: warning[-Wold-style-definition]: old-style function definition
# 1282|
# 1283| static void
# 1284|-> prt_evtfdinfo(pp, ps)
# 1285| pxinfo_t *pp; /* peer info */
# 1286| int ps; /* processing status:
Error: COMPILER_WARNING:
lsof-4.98.0-rh/proc.c: scope_hint: In function ‘print_fflags’
lsof-4.98.0-rh/proc.c:1324:1: warning[-Wold-style-definition]: old-style function definition
# 1324 | print_fflags(ffg, pof)
# | ^~~~~~~~~~~~
# 1322|
# 1323| char *
# 1324|-> print_fflags(ffg, pof)
# 1325| long ffg; /* file structure's flags value */
# 1326| long pof; /* process open files flags value */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/proc.c:1324:1: warning[-Wold-style-definition]: old-style function definition
# 1322|
# 1323| char *
# 1324|-> print_fflags(ffg, pof)
# 1325| long ffg; /* file structure's flags value */
# 1326| long pof; /* process open files flags value */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/proc.c: scope_hint: In function ‘process_ptyinfo’
lsof-4.98.0-rh/proc.c:1666:1: warning[-Wold-style-definition]: old-style function definition
# 1666 | process_ptyinfo(f)
# | ^~~~~~~~~~~~~~~
# 1664|
# 1665| void
# 1666|-> process_ptyinfo(f)
# 1667| int f; /* function:
# 1668| * 0 == process selected pseudoterminal
Error: COMPILER_WARNING:
lsof-4.98.0-rh/proc.c:1666:1: warning[-Wold-style-definition]: old-style function definition
# 1664|
# 1665| void
# 1666|-> process_ptyinfo(f)
# 1667| int f; /* function:
# 1668| * 0 == process selected pseudoterminal
Error: COMPILER_WARNING:
lsof-4.98.0-rh/proc.c: scope_hint: In function ‘prt_ptyinfo’
lsof-4.98.0-rh/proc.c:1745:1: warning[-Wold-style-definition]: old-style function definition
# 1745 | prt_ptyinfo(pp, prt_edev, ps)
# | ^~~~~~~~~~~
# 1743|
# 1744| static void
# 1745|-> prt_ptyinfo(pp, prt_edev, ps)
# 1746| pxinfo_t *pp; /* peer info */
# 1747| int prt_edev; /* print the end point device file */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/proc.c:1745:1: warning[-Wold-style-definition]: old-style function definition
# 1743|
# 1744| static void
# 1745|-> prt_ptyinfo(pp, prt_edev, ps)
# 1746| pxinfo_t *pp; /* peer info */
# 1747| int prt_edev; /* print the end point device file */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/usage.c: scope_hint: In function ‘isnullstr’
lsof-4.98.0-rh/usage.c:57:1: warning[-Wold-style-definition]: old-style function definition
# 57 | isnullstr(s)
# | ^~~~~~~~~
# 55|
# 56| static char *
# 57|-> isnullstr(s)
# 58| char *s; /* string pointer */
# 59| {
Error: COMPILER_WARNING:
lsof-4.98.0-rh/usage.c:57:1: warning[-Wold-style-definition]: old-style function definition
# 55|
# 56| static char *
# 57|-> isnullstr(s)
# 58| char *s; /* string pointer */
# 59| {
Error: COMPILER_WARNING:
lsof-4.98.0-rh/usage.c: scope_hint: In function ‘print_in_col’
lsof-4.98.0-rh/usage.c:76:1: warning[-Wold-style-definition]: old-style function definition
# 76 | print_in_col(col, cp)
# | ^~~~~~~~~~~~
# 74|
# 75| static int
# 76|-> print_in_col(col, cp)
# 77| int col; /* column number */
# 78| char *cp; /* what to print */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/usage.c:76:1: warning[-Wold-style-definition]: old-style function definition
# 74|
# 75| static int
# 76|-> print_in_col(col, cp)
# 77| int col; /* column number */
# 78| char *cp; /* what to print */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/usage.c: scope_hint: In function ‘report_HASDCACHE’
lsof-4.98.0-rh/usage.c:103:1: warning[-Wold-style-definition]: old-style function definition
# 103 | report_HASDCACHE(type, ttl, det)
# | ^~~~~~~~~~~~~~~~
# 101|
# 102| static void
# 103|-> report_HASDCACHE(type, ttl, det)
# 104| int type; /* type: 0 == read path report
# 105| * 1 == full report */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/usage.c:103:1: warning[-Wold-style-definition]: old-style function definition
# 101|
# 102| static void
# 103|-> report_HASDCACHE(type, ttl, det)
# 104| int type; /* type: 0 == read path report
# 105| * 1 == full report */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/usage.c: scope_hint: In function ‘report_HASKERNIDCK’
lsof-4.98.0-rh/usage.c:251:1: warning[-Wold-style-definition]: old-style function definition
# 251 | report_HASKERNIDCK(pfx, verb)
# | ^~~~~~~~~~~~~~~~~~
# 249|
# 250| static void
# 251|-> report_HASKERNIDCK(pfx, verb)
# 252| char *pfx; /* prefix (NULL if none) */
# 253| char *verb; /* verb (NULL if none) */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/usage.c:251:1: warning[-Wold-style-definition]: old-style function definition
# 249|
# 250| static void
# 251|-> report_HASKERNIDCK(pfx, verb)
# 252| char *pfx; /* prefix (NULL if none) */
# 253| char *verb; /* verb (NULL if none) */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/usage.c: scope_hint: In function ‘report_SECURITY’
lsof-4.98.0-rh/usage.c:275:1: warning[-Wold-style-definition]: old-style function definition
# 275 | report_SECURITY(pfx, punct)
# | ^~~~~~~~~~~~~~~
# 273|
# 274| static void
# 275|-> report_SECURITY(pfx, punct)
# 276| char *pfx; /* prefix (NULL if none) */
# 277| char *punct; /* short foem punctuation
Error: COMPILER_WARNING:
lsof-4.98.0-rh/usage.c:275:1: warning[-Wold-style-definition]: old-style function definition
# 273|
# 274| static void
# 275|-> report_SECURITY(pfx, punct)
# 276| char *pfx; /* prefix (NULL if none) */
# 277| char *punct; /* short foem punctuation
Error: COMPILER_WARNING:
lsof-4.98.0-rh/usage.c: scope_hint: In function ‘report_WARNDEVACCESS’
lsof-4.98.0-rh/usage.c:304:1: warning[-Wold-style-definition]: old-style function definition
# 304 | report_WARNDEVACCESS(pfx, verb, punct)
# | ^~~~~~~~~~~~~~~~~~~~
# 302|
# 303| static void
# 304|-> report_WARNDEVACCESS(pfx, verb, punct)
# 305| char *pfx; /* prefix (NULL if none) */
# 306| char *verb; /* verb (NULL if none) */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/usage.c:304:1: warning[-Wold-style-definition]: old-style function definition
# 302|
# 303| static void
# 304|-> report_WARNDEVACCESS(pfx, verb, punct)
# 305| char *pfx; /* prefix (NULL if none) */
# 306| char *verb; /* verb (NULL if none) */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/usage.c: scope_hint: In function ‘usage’
lsof-4.98.0-rh/usage.c:329:1: warning[-Wold-style-definition]: old-style function definition
# 329 | usage(err, fh, version)
# | ^~~~~
# 327|
# 328| void
# 329|-> usage(err, fh, version)
# 330| int err; /* it is called as part of error handlng? */
# 331| int fh; /* ``-F ?'' status */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/usage.c:329:1: warning[-Wold-style-definition]: old-style function definition
# 327|
# 328| void
# 329|-> usage(err, fh, version)
# 330| int err; /* it is called as part of error handlng? */
# 331| int fh; /* ``-F ?'' status */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/util.c: scope_hint: In function ‘util_strftime’
lsof-4.98.0-rh/util.c:50:1: warning[-Wold-style-definition]: old-style function definition
# 50 | util_strftime(fmtr, fmtl, fmt)
# | ^~~~~~~~~~~~~
# 48|
# 49| int
# 50|-> util_strftime(fmtr, fmtl, fmt)
# 51| char *fmtr; /* format output receiver */
# 52| int fmtl; /* sizeof(*fmtr) */
Error: COMPILER_WARNING:
lsof-4.98.0-rh/util.c:50:1: warning[-Wold-style-definition]: old-style function definition
# 48|
# 49| int
# 50|-> util_strftime(fmtr, fmtl, fmt)
# 51| char *fmtr; /* format output receiver */
# 52| int fmtl; /* sizeof(*fmtr) */