Skip to content

Commit

Permalink
fixed some c&p comment errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabian committed Mar 27, 2020
1 parent edb3dbf commit 03317e6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ipp-client.go
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ func (c *IPPClient) CancelJob(jobID int, purge bool) error {
return err
}

// CancelJob cancels all jobs for a specified printer. if purge is true, the jobs will also be removed
// CancelAllJob cancels all jobs for a specified printer. if purge is true, the jobs will also be removed
func (c *IPPClient) CancelAllJob(printer string, purge bool) error {
req := NewRequest(OperationCancelJobs, 1)
req.OperationAttributes[AttributePrinterURI] = c.getPrinterUri(printer)
Expand All @@ -379,7 +379,7 @@ func (c *IPPClient) RestartJob(jobID int) error {
return err
}

// RestartJob holds a job
// HoldJobUntil holds a job
func (c *IPPClient) HoldJobUntil(jobID int, holdUntil string) error {
req := NewRequest(OperationRestartJob, 1)
req.OperationAttributes[AttributeJobURI] = c.getJobUri(jobID)
Expand Down
2 changes: 1 addition & 1 deletion response.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func (r *Response) CheckForErrors() error {
return nil
}

// NewRequest creates a new ipp response
// NewResponse creates a new ipp response
func NewResponse(statusCode int16, reqID int32) *Response {
return &Response{
ProtocolVersionMajor: ProtocolVersionMajor,
Expand Down
1 change: 1 addition & 0 deletions utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"path"
)

// ParseControlFile reads and decodes a cups control file into a response
func ParseControlFile(jobID int, spoolDirectory string) (*Response, error) {
if spoolDirectory == "" {
spoolDirectory = "/var/spool/cups"
Expand Down

0 comments on commit 03317e6

Please sign in to comment.