First, ωf(x)=0 iff f is continuous at x.
(⇒) If ωf(x)=0, every ε>0 admits a neighborhood U with diamf(U)<ε, so ∣f(y)−f(x)∣≤diamf(U)<ε for y∈U.
(⇐) If f is continuous at x, every ε>0 admits a neighborhood U with f(U)⊆(f(x)−ε,f(x)+ε), so diamf(U)≤2ε and ωf(x)≤2ε; ε arbitrary gives ωf(x)=0.
Now density.
Let fn→f pointwise with fn continuous.
Cover R by closed intervals Vj (j∈Z) of length <1/(2k) whose interiors also cover R (e.g. Vj=[8kj−8k1,8kj+8k1].
Fix a nonempty open U0.
For each x∈U0, f(x) lies in some int(Vj), and since fm(x)→f(x) there is n with fm(x)∈Vj for all m≥n.
Hence U0=⋃n,jHn,j, where Hn,j={x∈U0:fm(x)∈Vj ∀m≥n} is relatively closed in U0 (fm continuous, Vj closed).
U0 itself is not complete, so Baire's theorem cannot be applied to U0 directly — restrict to a closed ball instead.
Since U0 is open and nonempty, some closed ball B(x0,r)⊆U0 exists, and B(x0,r) is complete.
Now B(x0,r)=⋃n,j(Hn,j∩B(x0,r)) with each Hn,j∩B(x0,r) closed in this complete space, so by Baire's theorem some Hn0,j0∩B(x0,r) has nonempty relative interior in B(x0,r).
Intersecting with the open ball B(x0,r) gives a nonempty open W⊆Hn0,j0 with W⊆U0 (an open set meeting B(x0,r) in a relative-interior piece also meets its interior).
For y∈W, fm(y)∈Vj0 for all m≥n0, and Vj0 closed gives f(y)∈Vj0.
So f(W)⊆Vj0 and diamf(W)<1/(2k).
Since W is a neighborhood of each of its points x, ωf(x)≤diamf(W)<1/k.
Thus W⊆U0∩{ωf<1/k}=∅ — {ωf<1/k} is dense.