]> granicus.if.org Git - graphviz/commitdiff
mark interpol function as static
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 2 May 2021 02:35:13 +0000 (19:35 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 16 May 2021 16:40:28 +0000 (09:40 -0700)
This is not used outside of its containing file.

cmd/smyrna/viewport.c

index a77ae18e3d26b8d77f0303846cb42401c1e91542..cf2b9174bfb0b8b48b9b8b33d4c5f2b3b9d51ca0 100644 (file)
@@ -674,7 +674,7 @@ void glexpose(void)
     expose_event(view->drawing_area, NULL, NULL);
 }
 
-float interpol(float minv, float maxv, float minc, float maxc, float x)
+static float interpol(float minv, float maxv, float minc, float maxc, float x)
 {
     return ((x - minv) * (maxc - minc) / (maxv - minv) + minc);
 }