]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
trivial compiler warning
authorJeff Lenk <jeff@jefflenk.com>
Wed, 19 Sep 2012 03:10:47 +0000 (22:10 -0500)
committerJeff Lenk <jeff@jefflenk.com>
Wed, 19 Sep 2012 03:10:47 +0000 (22:10 -0500)
src/switch_xml.c

index d4b26e0b9d62ca654bbec065adb930d28b1df8ce..a4da3ca6cfceb2f8bf851b732c0d0e1c3f012736 100644 (file)
@@ -1446,7 +1446,7 @@ static int preprocess(const char *cwd, const char *file, FILE *write_fd, int rle
                }
 
                if ((cmd = strstr(bp, "<!--#"))) {
-                       if (fwrite(bp, 1, (unsigned) (cmd - bp), write_fd) != (cmd - bp)) {
+                       if (fwrite(bp, 1, (unsigned) (cmd - bp), write_fd) != (unsigned) (cmd - bp)) {
                                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Short write!\n");
                        }
                        if ((e = strstr(cmd, "-->"))) {