1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
Description: Do not mess with errno.h in formal parameters
Rename errno formal parameter into Errno to avoid conversion.
Author: Al Nikolov <clown@debian.org>
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/src/fsel.c
+++ b/src/fsel.c
@@ -68,7 +68,7 @@
static void fixPath(Str *pathOut, const char *pathIn);
static void addCwd(Str *pathOut);
static bool maskMatch(const char *mask, const char *fName, int fLen);
-static void dirError(AbutFsel *f, int errno, const char *badDir);
+static void dirError(AbutFsel *f, int Errno, const char *badDir);
static ButOut msgDead(void *packet);
static ButOut msgOkBut(But *but);
@@ -626,7 +626,7 @@
}
-static void dirError(AbutFsel *f, int errno, const char *badDir) {
+static void dirError(AbutFsel *f, int Errno, const char *badDir) {
Str fullError;
AbutMsgOpt okBut;
@@ -639,7 +639,7 @@
okBut.packet = f;
okBut.keyEq = NULL;
str_init(&fullError);
- str_print(&fullError, abutFsel_dirErrMessage, strerror(errno), badDir);
+ str_print(&fullError, abutFsel_dirErrMessage, strerror(Errno), badDir);
f->msg = abutMsg_optCreate(f->abut, f->win, 2, str_chars(&fullError),
msgDead, f, 1, &okBut);
}
|