Skip to content

Commit b36c1ff

Browse files
committed
CLN: try to make cpplint happy
more specifically: - only include sys/stat.h once - keep lines shorter than 80 characters
1 parent 77b4139 commit b36c1ff

File tree

1 file changed

+4
-3
lines changed
  • pandas/_libs/src/parser

1 file changed

+4
-3
lines changed

pandas/_libs/src/parser/io.c

+4-3
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,6 @@ void *buffer_rd_bytes(void *source, size_t nbytes, size_t *bytes_read,
173173
#ifdef HAVE_MMAP
174174

175175
#include <sys/mman.h>
176-
#include <sys/stat.h>
177176

178177
void *new_mmap(char *fname) {
179178
memory_map *mm;
@@ -187,12 +186,14 @@ void *new_mmap(char *fname) {
187186
}
188187
mm->fd = open(fname, O_RDONLY);
189188
if (mm->fd == -1) {
190-
fprintf(stderr, "new_file_buffer: open(%s) failed. errno =%d\n", fname, errno);
189+
fprintf(stderr, "new_file_buffer: open(%s) failed. errno =%d\n",
190+
fname, errno);
191191
goto err_free;
192192
}
193193

194194
if (fstat(mm->fd, &stat) == -1) {
195-
fprintf(stderr, "new_file_buffer: fstat() failed. errno =%d\n", errno);
195+
fprintf(stderr, "new_file_buffer: fstat() failed. errno =%d\n",
196+
errno);
196197
goto err_close;
197198
}
198199
filesize = stat.st_size; /* XXX This might be 32 bits. */

0 commit comments

Comments
 (0)