HomeFreeBSD

getty: code cleanup, part 1

Description

getty: code cleanup, part 1

  • Avoid unnecessary use of unsigned char *
  • Use explicit casts when assigning unsigned char * to char * or vice versa
  • Drop unused global variables (and fix memory leak in gettable())
  • Use snprintf() instead of strcpy() + strcat()
  • Drop spurious braces in switch

Sponsored by: Klara, Inc.
Obtained from: Apple OSS Distributions (in part)
Differential Revision: https://reviews.freebsd.org/D37263

Details

Provenance
desAuthored on Nov 4 2022, 1:23 PM
Differential Revision
D37263: getty: code cleanup, part 1
Parents
rGf9349d427431: gzip: Add support for decompressing zstd files.
Branches
Unknown
Tags
Unknown