calibrations is installed in $localstatedir
authorDavid Schleef <ds@schleef.org>
Sat, 16 Aug 2003 00:18:46 +0000 (00:18 +0000)
committerDavid Schleef <ds@schleef.org>
Sat, 16 Aug 2003 00:18:46 +0000 (00:18 +0000)
lib/calib.c

index fc39a271068b9ff61a3f15eb468d8bbaccbc07cd..f792159d1a48accef0309ce91034758056debaaa 100644 (file)
@@ -201,7 +201,7 @@ char* _comedi_get_default_calibration_path( comedi_t *dev )
        board_name = strdup( temp );
 
        fixup_board_name( board_name );
-       asprintf( &file_path, "/etc/comedi/calibrations/%s_%s_comedi%li",
+       asprintf( &file_path, LOCALSTATEDIR "/comedi/calibrations/%s_%s_comedi%li",
                driver_name, board_name, ( unsigned long ) minor( file_stats.st_rdev ) );
 
        free( board_name );