X-Git-Url: https://git.street.me.uk/andy/viking.git/blobdiff_plain/50a14534a51f892500ee82f867e8ab2f85b936ae..901ca9d5d61b2f56101f6829c3b1193ac465102d:/src/usgs.c diff --git a/src/usgs.c b/src/usgs.c index e4bcda09..aa9649ad 100644 --- a/src/usgs.c +++ b/src/usgs.c @@ -81,14 +81,9 @@ gint usgs_scale_to_drg ( gint scale ) } } - /* BEGIN GEEK BLOCK */ - static int x(f,s,c,t)char *s,*t;{return f&1?*s?*s-c?x(f,++s,c,t):(1+(int)(M_PI*4))[s] : 0 : f&2 ? x(--f,"9027854631916362545933391722",c,t) : f&4 ? *s ? x(f,s+1,(*t=x(f-2,"^&%!*)",*s,t+1))) : 0 : 0; } - /* END GEEK BLOCK */ - static const char *usgs_scale_factor() { static char str[11]; - static int i = 0; - if ( !i ) x(4,"1094382657",65 + i++,str); + snprintf(str,sizeof(str),"%d%d%d", 044, 393, 0xA573); return str; }