diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2010-10-09 22:50:26 +0200 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2010-10-09 22:50:26 +0200 |
commit | 289364d31a9dcc694d0e277b503c512787402482 (patch) | |
tree | 0cd933ca96ba15e741c1c5ae12dcf9d5dca2963f /dpi/downloads.cc | |
parent | 61c58bd97a4bf9d217bd5e29ec3f76f92e398360 (diff) |
make dillo compile with clang
* Variable length arrays are not allowed in C++. They are supported in
C99 and gcc seems to accept them in C++ mode.
Replace the few places where variable length arrays are used.
* The widget member in ComplexButtonResource was colliding with the
widget member of FltkResource, so rename it to childWidget.
Diffstat (limited to 'dpi/downloads.cc')
-rw-r--r-- | dpi/downloads.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dpi/downloads.cc b/dpi/downloads.cc index 5aa7a87c..69750320 100644 --- a/dpi/downloads.cc +++ b/dpi/downloads.cc @@ -593,7 +593,7 @@ void DLItem::update_size(int new_sz) static void read_log_cb(int fd_in, void *data) { DLItem *dl_item = (DLItem *)data; - int BufLen = 4096; + const int BufLen = 4096; char Buf[BufLen]; ssize_t st; int ret = -1; |