]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
printing: Apply some const
authorVolker Lendecke <vl@samba.org>
Sun, 4 Jan 2026 09:29:12 +0000 (10:29 +0100)
committerVolker Lendecke <vl@samba.org>
Tue, 20 Jan 2026 11:53:34 +0000 (11:53 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Anoop C S <anoopcs@samba.org>
source3/printing/nt_printing.c

index d6feed6d29e6bc99b07550a2c38bf75faea3385c..34d552336094f5549b53f7fea24273a7a051b6f3 100644 (file)
@@ -353,11 +353,11 @@ static ssize_t printing_pread_data(files_struct *fsp,
 ****************************************************************************/
 
 static int handle_pe_file(files_struct *fsp,
-                               off_t in_pos,
-                               char *fname,
-                               char *buf,
-                               uint32_t *major,
-                               uint32_t *minor)
+                         off_t in_pos,
+                         const char *fname,
+                         char *buf,
+                         uint32_t *major,
+                         uint32_t *minor)
 {
        unsigned int i;
        unsigned int num_sections;
@@ -531,11 +531,11 @@ static int handle_pe_file(files_struct *fsp,
 ****************************************************************************/
 
 static int handle_ne_file(files_struct *fsp,
-                               off_t in_pos,
-                               char *fname,
-                               char *buf,
-                               uint32_t *major,
-                               uint32_t *minor)
+                         off_t in_pos,
+                         const char *fname,
+                         char *buf,
+                         uint32_t *major,
+                         uint32_t *minor)
 {
        unsigned int i;
        ssize_t byte_count;
@@ -695,9 +695,9 @@ static int handle_ne_file(files_struct *fsp,
 ****************************************************************************/
 
 static int get_file_version(files_struct *fsp,
-                               char *fname,
-                               uint32_t *major,
-                               uint32_t *minor)
+                           const char *fname,
+                           uint32_t *major,
+                           uint32_t *minor)
 {
        char    *buf = NULL;
        ssize_t byte_count;