The coronal structure above sunspots and pores