Skip to content

remove bogus close function

O H requested to merge (removed):close into master

Just close the file descriptor, instead of doing shutdown.

Not doing so was already wrong in 2006.

wi_linux.c:83:1: error: conflicting types for 'close' close(int fd) ^~~~~ In file included from /usr/include/glib-2.0/gio/gcredentials.h:32:0, from /usr/include/glib-2.0/gio/gio.h:46, from /usr/include/xfce4/libxfce4util/xfce-gio-extensions.h:28, from /usr/include/xfce4/libxfce4util/libxfce4util.h:40, from wi_linux.c:32: /usr/include/unistd.h:353:12: note: previous declaration of 'close' was here extern int close (int __fd); ^~~~~ make[2]: *** [Makefile:525: libwavelan_la-wi_linux.lo] Error 1 make[2]: Leaving directory '/home/abuild/rpmbuild/BUILD/xfce4-wavelan-plugin-20210505T194034.7ba466bd/panel-plugin'

Signed-off-by: Olaf Hering olaf@aepfle.de

Merge request reports