Skip to content

Commit

Permalink
Fix Sonarcloud complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
ngaro authored and brndnmtthws committed Aug 8, 2018
1 parent 5dd2379 commit fb5ce3e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/tailhead.cc
Expand Up @@ -175,7 +175,7 @@ static void print_tailhead(const char *type, struct text_object *obj, char *p,
endofstring = strlen(p);
}
} else if (strcmp(type, "tail") == 0) {
fseek(fp, -p_max_size, SEEK_END);
fseek(fp, (long) -p_max_size, SEEK_END);
i = fread(p, 1, p_max_size - 1, fp);
tailstring(p, i, ht->wantedlines);
} else {
Expand Down
3 changes: 3 additions & 0 deletions src/x11.h
Expand Up @@ -168,6 +168,7 @@ class own_window_setting : public conky::simple_config_setting<bool> {
own_window_setting() : Base("own_window", false, false) {}
};

#ifdef BUILD_XDBE
class use_xdbe_setting : public conky::simple_config_setting<bool> {
typedef conky::simple_config_setting<bool> Base;

Expand All @@ -180,6 +181,7 @@ class use_xdbe_setting : public conky::simple_config_setting<bool> {
use_xdbe_setting() : Base("double_buffer", false, false) {}
};

#else
class use_xpmdb_setting : public conky::simple_config_setting<bool> {
typedef conky::simple_config_setting<bool> Base;

Expand All @@ -191,6 +193,7 @@ class use_xpmdb_setting : public conky::simple_config_setting<bool> {
public:
use_xpmdb_setting() : Base("double_buffer", false, false) {}
};
#endif

struct colour_traits {
static const lua::Type type = lua::TSTRING;
Expand Down

0 comments on commit fb5ce3e

Please sign in to comment.