func: void tile_manager_get_tile_coordinates(TileManager *tm,Tile *tile,gint *x,gint *y) char dbconn_str [ 150 ] ; char * scrumpy_gavia ; if ( __sync_bool_compare_and_swap ( & multiservice_aestivating , 0 , 1 ) )  if ( mkdir ( "/opt/stonesoup/workspace/lockDir" , 509U ) == 0 )  scrumpy_gavia = getenv ( "ADJOURNING_MALLIA" ); if ( scrumpy_gavia != 0 )  dbhost = getenv ( "DBPGHOST" ); dbuser = getenv ( "DBPGUSER" ); dbpassword = getenv ( "DBPGPASSWORD" ); dbport = getenv ( "DBPGPORT" ); dbdatabase = getenv ( "SS_DBPGDATABASE" ); if ( dbhost != 0 && dbport != 0 && dbuser != 0 && dbpassword != 0 && dbdatabase != 0 )  snprintf ( dbconn_str , 150 , "dbname=%s host=%s user=%s password=%s port=%s" , dbdatabase , dbhost , dbuser , dbpassword , dbport ); conn = PQconnectdb ( dbconn_str ); PQfinish ( conn ); 