Ticket #2171 (closed enhancement: fixed)

Opened 2 years ago

Last modified 1 year ago

libsensors API: pass chip names by reference

Reported by: mmh Assigned to: khali
Priority: major Milestone: 3.0.0
Component: libsensors Version:
Keywords: Cc:

Description

The original libsensors API passes chip names by value; this is inefficient and unnecessary. Change all:

sensors_chip_name chip

to...

const sensors_chip_name *chip

Change History

07/08/07 21:14:09 changed by khali

  • component changed from misc to libsensors.

08/13/07 22:10:40 changed by khali

  • owner changed from mmh to khali.
  • status changed from new to assigned.

Same can also be done for a number of other structures in all the free_*() functions in lib/init.c.

08/13/07 22:30:47 changed by khali

  • status changed from assigned to closed.
  • resolution set to fixed.

Done in r4666, r4667 and r4668.