Page MenuHomeFreeBSD

usr.sbin/lpr/lpc: build warning fixes
ClosedPublic

Authored by aprieger_llnw.com on Jun 1 2017, 8:22 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 19, 12:47 PM
Unknown Object (File)
Apr 8 2024, 11:20 AM
Unknown Object (File)
Apr 7 2024, 5:57 PM
Unknown Object (File)
Mar 22 2024, 8:38 PM
Unknown Object (File)
Mar 8 2024, 2:46 PM
Unknown Object (File)
Feb 18 2024, 3:21 PM
Unknown Object (File)
Jan 10 2024, 4:15 PM
Unknown Object (File)
Jan 4 2024, 5:27 AM
Subscribers
None

Details

Summary

usr.sbin/lpr/lpc (line printer control program) build warning fixes

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Changelog:

  1. usr.sbin/lpr/lpc/lpc.c
    • Warning
      • passing 'char *[20]' to parameter of type 'const char **' discards qualifiers in nested pointer types [-Wincompatible-pointer-types-discards-qualifiers]
    • Fix:
      • Explicitly cast the variable "margv" to const char ** only for it's use as a parameter to suppress the error
This revision is now accepted and ready to land.Jun 16 2017, 5:54 PM
This revision was automatically updated to reflect the committed changes.