Fix some NetBSD warnings.
authorJeremy Allison <jra@samba.org>
Wed, 25 Feb 2009 17:59:53 +0000 (09:59 -0800)
committerJeremy Allison <jra@samba.org>
Wed, 25 Feb 2009 17:59:53 +0000 (09:59 -0800)
Jeremy.

source3/printing/nt_printing.c
source3/smbd/reply.c

index bbe8ebc..b254ce0 100644 (file)
@@ -1381,7 +1381,8 @@ static int file_version_is_newer(connection_struct *conn, fstring new_file, fstr
                                 goto error_exit;
                        }
                        old_create_time = st.st_mtime;
-                       DEBUGADD(6,("file_version_is_newer: mod time = %ld sec\n", old_create_time));
+                       DEBUGADD(6,("file_version_is_newer: mod time = %ld sec\n",
+                               (long)old_create_time));
                }
        }
        close_file(NULL, fsp, NORMAL_CLOSE);
@@ -1432,7 +1433,8 @@ static int file_version_is_newer(connection_struct *conn, fstring new_file, fstr
                                goto error_exit;
                        }
                        new_create_time = st.st_mtime;
-                       DEBUGADD(6,("file_version_is_newer: mod time = %ld sec\n", new_create_time));
+                       DEBUGADD(6,("file_version_is_newer: mod time = %ld sec\n",
+                               (long)new_create_time));
                }
        }
        close_file(NULL, fsp, NORMAL_CLOSE);
index b30ef23..80ed019 100644 (file)
@@ -2808,9 +2808,9 @@ static void send_file_readbraw(connection_struct *conn,
                }
                return;
        }
-#endif
 
 normal_readbraw:
+#endif
 
        outbuf = TALLOC_ARRAY(NULL, char, nread+4);
        if (!outbuf) {