alpine 3.6
obsolete weakness #92

1

Weakness Breakdown


Definition:

An obsolete weakness occurs when someone uses deprecated or obsolete functions when building a system. As a programming language evolves, some functions occasionally become obsolete.

Warning code(s):

This C routine is considered obsolete.

File Name:

v4l-utils/src/v4l-utils-1.12.5/lib/libdvbv5/dvb-sat.c

Context:

The highlighted line of code below is the trigger point of this particular Alpine 3.6 obsolete weakness.

 		 * DISEqC for setting the polarization. It also doesn't
		 * use any tone/tone burst
		 */
		pol_v = 0;
		high_band = 1;
		if (parms->p.current_sys == SYS_ISDBS)
			vol_high = 1;
	} else {
		/* Adjust voltage/tone accordingly */
		if (parms->p.sat_number < 2) {
			vol_high = pol_v ? 0 : 1;
			tone_on = high_band;
			mini_b = parms->p.sat_number & 1;
		}
	}

	rc = dvb_fe_sec_voltage(&parms->p, 1, vol_high);
	if (rc)
		return rc;

	rc = dvb_fe_sec_tone(&parms->p, SEC_TONE_OFF);
	if (rc)
		return rc;

	usleep(15 * 1000);

	if (!t)
		rc = dvbsat_diseqc_write_to_port_group(parms, &cmd, high_band,
							pol_v, sat_number);
	else
		rc = dvbsat_scr_odu_channel_change(parms, &cmd, high_band,
							pol_v, sat_number, t);

	if (rc) {
		dvb_logerr(_("sending diseq failed"));
		return rc;
	}
	usleep((15 + parms->p.diseqc_wait) * 1000);

	rc = dvb_fe_diseqc_burst(&parms->p, mini_b);
	if (rc)
		return rc;
	usleep(15 * 1000);

	rc = dvb_fe_sec_tone(&parms->p, tone_on ? SEC_TONE_ON : SEC_TONE_OFF);

	return rc;
}

int dvb_sat_real_freq(struct dvb_v5_fe_parms *p, int freq) 

The registered trademark Linux® is used pursuant to a sublicense from the Linux Foundation, the exclusive licensee of Linus Torvalds, owner of the mark on a world­wide basis.