Commit b3c40540 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Fix a few compiler warnings (-Wall -Wextra)

parent b61f0a05
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -136,6 +136,7 @@ void cb_reload_timer(void *data);
char *feh_http_load_image(char *url);
int feh_load_image_char(Imlib_Image * im, char *filename);
void feh_draw_filename(winwidget w);
void feh_draw_actions(winwidget w);
void feh_draw_caption(winwidget w);
void feh_display_status(char stat);
void real_loadables_mode(int loadable);
+1 −1
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@ static int session_id = 0;
static char *socket_name;
static int socket_fd = 0;

int feh_ipc_create_socket(void)
void feh_ipc_create_socket(void)
{
	struct sockaddr_un saddr;
	int i;
+1 −1
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

#define FEH_IPC_VERSION 0x100;

int feh_ipc_create_socket(void);
void feh_ipc_create_socket(void);
int feh_ipc_get_session_id(void);

typedef struct {
+1 −2
Original line number Diff line number Diff line
@@ -396,8 +396,7 @@ static void feh_parse_option_array(int argc, char **argv)
		{"index-dim", 1, 0, 232},
		{0, 0, 0, 0}
	};
	int optch = 0, cmdx = 0, i = 0;
	int geomret;
	int optch = 0, cmdx = 0;

	D_ENTER(4);

+2 −2
Original line number Diff line number Diff line
@@ -114,8 +114,8 @@ struct __fehoptions {
	int geom_flags;
	int geom_x;
	int geom_y;
	int geom_w;
	int geom_h;
	unsigned int geom_w;
	unsigned int geom_h;
	int default_zoom;
	int menu_border;
	unsigned char adjust_reload;
Loading