]> diplodocus.org Git - nmh/blobdiff - sbr/fdcompare.c
Fix invalid pointer arithmetic.
[nmh] / sbr / fdcompare.c
index 45eef2d46f2adfaee510cf22d1859f49190e3c1f..7df9a89a84bfa441f7e135b03555bd054f7e33df 100644 (file)
@@ -1,5 +1,4 @@
-/*
- * fdcompare.c -- are two files identical?
+/* fdcompare.c -- are two files identical?
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -33,7 +32,7 @@ fdcompare (int fd1, int fd2)
     resp = 0;
 
 leave: ;
-    lseek (fd1, (off_t) 0, SEEK_SET);
-    lseek (fd2, (off_t) 0, SEEK_SET);
+    lseek(fd1, 0, SEEK_SET);
+    lseek(fd2, 0, SEEK_SET);
     return resp;
 }