FreeBSD Bugzilla – Attachment 17785 Details for
Bug 32204
[PATCH] Remove code redundancy in usr.sbin/lpr/common_source/printcap.c
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 860 bytes, created by
mikem
on 2001-11-23 00:40:04 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
mikem
Created:
2001-11-23 00:40:04 UTC
Size:
860 bytes
patch
obsolete
>--- printcap.c.original Thu Nov 22 01:30:54 2001 >+++ printcap.c Thu Nov 22 01:31:53 2001 >@@ -141,28 +141,13 @@ > > /* > * Scan through the database of printers using cgetfirst/cgetnext. >- * Return false of error or end-of-database; else true. >+ * Return false if error or end-of-database; else true. > */ > int > firstprinter(struct printer *pp, int *error) > { >- int status; >- char *bp; >- > init_printer(pp); >- status = cgetfirst(&bp, printcapdb); >- if (firstnextmap(&status) == 0) { >- if (error) >- *error = status; >- return 0; >- } >- if (error) >- *error = status; >- status = getprintcap_int(bp, pp); >- free(bp); >- if (error && status) >- *error = status; >- return 1; >+ return ( nextprinter(pp, error) ); > } > > int
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 32204
: 17785