On two-point boundary-value problems