diff --git a/src/gmenu2x.cpp b/src/gmenu2x.cpp index bc12074..72adaa6 100644 --- a/src/gmenu2x.cpp +++ b/src/gmenu2x.cpp @@ -130,7 +130,7 @@ static void quit_all(int err) { exit(err); } -const string GMenu2X::getHome(void) +const string GMenu2X::getHome() { return gmenu2x_home; } diff --git a/src/gmenu2x.h b/src/gmenu2x.h index 6218691..4ffffd6 100644 --- a/src/gmenu2x.h +++ b/src/gmenu2x.h @@ -126,7 +126,7 @@ public: /* Returns the home directory of gmenu2x, usually * ~/.gmenu2x */ - static const std::string getHome(void); + static const std::string getHome(); /* * Variables needed for elements disposition diff --git a/src/monitor.cpp b/src/monitor.cpp index 0a31e2d..cc920d3 100644 --- a/src/monitor.cpp +++ b/src/monitor.cpp @@ -27,7 +27,7 @@ bool Monitor::event_accepted(struct inotify_event &event) return len >= 5 && !strncmp(event.name + len - 4, ".opk", 4); } -int Monitor::run(void) +int Monitor::run() { int wd, fd; @@ -84,7 +84,7 @@ Monitor::Monitor(std::string path, unsigned int flags) : path(path) pthread_create(&thd, NULL, inotify_thd, (void *) this); } -Monitor::~Monitor(void) +Monitor::~Monitor() { pthread_cancel(thd); pthread_join(thd, NULL); diff --git a/src/monitor.h b/src/monitor.h index 181a08b..63abff8 100644 --- a/src/monitor.h +++ b/src/monitor.h @@ -13,8 +13,8 @@ public: IN_DELETE_SELF | IN_MOVE_SELF); virtual ~Monitor(); - int run(void); - const std::string getPath(void) { return path; } + int run(); + const std::string getPath() { return path; } private: std::string path;