Calculation of the first-order s-wave optical potential in pionic atoms.