]> git.itanic.dy.fi Git - rrdd/blobdiff - mkcompile_h
onewire_parser.c: Fix compiler warnings about string lengths
[rrdd] / mkcompile_h
index c14245989c137d7e8bb9bf5e43aa5680e5ee76a7..1a996bdaef5a12fb95efac2cefcc8439a214543a 100755 (executable)
@@ -22,15 +22,15 @@ echo "#endif" >> $VERSION_TMP
 if [ -f $VERSION_TARGET ] ; then
        cmp -s $VERSION_TMP $VERSION_TARGET || cp $VERSION_TMP $VERSION_TARGET
 else
-       cp $VERSION_TMP $VERSION_TARGET
+       mv $VERSION_TMP $VERSION_TARGET
 fi
 
 echo $COMPILER_STR > $COMPILER_STR_TMP
 
 if [ -f $COMPILER_STR_TARGET ] ; then
        cmp -s $COMPILER_STR_TMP $COMPILER_STR_TARGET || \
-           cp $COMPILER_STR_TMP $COMPILER_STR_TARGET
+           mv $COMPILER_STR_TMP $COMPILER_STR_TARGET
 else
-       cp $COMPILER_STR_TMP $COMPILER_STR_TARGET
+       mv $COMPILER_STR_TMP $COMPILER_STR_TARGET
 fi