I've never heard of any C172 airframe lifed components, ABX, unlike, say, PA38 or AA5 wings. As long as the maintenance schedule is complied with, along with ADs, the aircraft can be operated until fossil fuels run out.

Any primary/secondary damage caused by hard landings would be found on routine maintenance.
Ultimately, be sure to have a good engineer survey it before you buy.