pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/pkgtools/check-portability/files
Module Name: pkgsrc
Committed By: rillig
Date: Fri Mar 13 16:43:05 UTC 2020
Modified Files:
pkgsrc/pkgtools/check-portability/files: check-portability.c
Log Message:
pkgtools/check-portability: elimitate common subexpression
To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 \
pkgsrc/pkgtools/check-portability/files/check-portability.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/pkgtools/check-portability/files/check-portability.c
diff -u pkgsrc/pkgtools/check-portability/files/check-portability.c:1.8 pkgsrc/pkgtools/check-portability/files/check-portability.c:1.9
--- pkgsrc/pkgtools/check-portability/files/check-portability.c:1.8 Fri Mar 13 16:20:34 2020
+++ pkgsrc/pkgtools/check-portability/files/check-portability.c Fri Mar 13 16:43:05 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: check-portability.c,v 1.8 2020/03/13 16:20:34 rillig Exp $ */
+/* $NetBSD: check-portability.c,v 1.9 2020/03/13 16:43:05 rillig Exp $ */
/*
Copyright (c) 2020 Roland Illig
@@ -526,7 +526,7 @@ check_file(cstr filename)
while (str_read_line(&line, f)) {
cstr cline = str_c(&line);
- if (cstr_contains_char(str_c(&line), '\0'))
+ if (cstr_contains_char(cline, '\0'))
break;
lineno++;
str_charptr(&line);
Home |
Main Index |
Thread Index |
Old Index