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, Nov 28, 11:17 AM
Unknown Object (File)
Fri, Nov 28, 4:54 AM
Unknown Object (File)
Tue, Nov 11, 10:32 PM
Unknown Object (File)
Sun, Nov 9, 5:54 PM
Unknown Object (File)
Oct 30 2025, 2:04 AM
Unknown Object (File)
Oct 29 2025, 1:14 PM
Unknown Object (File)
Oct 29 2025, 7:33 AM
Unknown Object (File)
Oct 29 2025, 7:33 AM
Subscribers
None

Details

Summary

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

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 9615
Build 10060: arc lint + arc unit

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.