summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
Diffstat (limited to 'source3/printing')
-rw-r--r--source3/printing/printing.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/source3/printing/printing.c b/source3/printing/printing.c
index 09a574c2c9..d779a42ec7 100644
--- a/source3/printing/printing.c
+++ b/source3/printing/printing.c
@@ -227,10 +227,12 @@ static BOOL parse_lpq_bsd(char *line,print_queue_struct *buf,BOOL first)
pstrcpy(line2,line);
#ifdef OSF1
- int length;
- length = strlen(line2);
- if (line2[length-3] == ':')
- return(False);
+ {
+ size_t length;
+ length = strlen(line2);
+ if (line2[length-3] == ':')
+ return(False);
+ }
#endif /* OSF1 */
tok[0] = strtok(line2," \t");