summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoritz Luedecke <ritze@skweez.net>2017-09-25 15:12:24 +0200
committerMoritz Luedecke <ritze@skweez.net>2017-09-25 15:12:24 +0200
commit7d1fd3fc981299448d3e4289c24b5352876e3bdd (patch)
tree543684885325403b42c12a27f3d5db9bdea9b945
parent9e73caa8e5e29182d6e43a410d4b958f9adb90ae (diff)
Rewrite a comment and delete a unnecessary whitespace
-rw-r--r--pinentry-dmenu.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/pinentry-dmenu.c b/pinentry-dmenu.c
index 7c7987b..bce1da2 100644
--- a/pinentry-dmenu.c
+++ b/pinentry-dmenu.c
@@ -27,7 +27,7 @@
#define CONFIG "/.gnupg/pinentry-dmenu.conf"
#define INTERSECT(x, y, w, h, r) \
- (MAX(0, MIN((x)+(w),(r).x_org+(r).width) - MAX((x),(r).x_org)) \
+ (MAX(0, MIN((x)+(w),(r).x_org+(r).width) - MAX((x),(r).x_org)) \
&& MAX(0, MIN((y)+(h),(r).y_org+(r).height) - MAX((y),(r).y_org)))
#define LENGTH(X) (sizeof(X) / sizeof(X[0]))
#define TEXTW(X) (drw_fontset_getwidth(drw, (X)) + lrpad)
@@ -679,8 +679,7 @@ main(int argc, char *argv[]) {
char *home = getenv("HOME");
config_t cfg;
- // This is a little workaround to get the home dir even if the user used
- // sudo or logged in as root
+ /* Get the home dir even if the user used sudo or logged in as root */
if (sudo_uid) {
i = atoi(sudo_uid);
pw = getpwuid(i);