summaryrefslogtreecommitdiff
path: root/dselect/methparse.cc
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2010-11-01 08:18:28 +0100
committerGuillem Jover <guillem@debian.org>2010-11-19 05:21:14 +0100
commitc6ea15b9850f26ea3b5a13667396c89e00aa9890 (patch)
tree9da3c56846f1e9f0e75d3ac619713c6467af472a /dselect/methparse.cc
parent7ee4f4f2ef5ca3d9fa1426ac93f78ead2280bc36 (diff)
downloaddpkg-c6ea15b9850f26ea3b5a13667396c89e00aa9890.tar.gz
Cleanup white spaces
Remove trailing spaces. Remove blank lines not separating different code blocks. Remove blank lines at the end of the file.
Diffstat (limited to 'dselect/methparse.cc')
-rw-r--r--dselect/methparse.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/dselect/methparse.cc b/dselect/methparse.cc
index 553869d5c..1c128beb7 100644
--- a/dselect/methparse.cc
+++ b/dselect/methparse.cc
@@ -91,7 +91,7 @@ void readmethods(const char *pathbase, dselect_option **optionspp, int *nread) {
}
if (debug) fprintf(debug,"readmethods(`%s',...) directory open\n", pathbase);
-
+
while ((dent= readdir(dir)) != 0) {
c= dent->d_name[0];
if (debug) fprintf(debug,"readmethods(`%s',...) considering `%s' ...\n",
@@ -106,7 +106,7 @@ void readmethods(const char *pathbase, dselect_option **optionspp, int *nread) {
ohshit(_("method `%.250s' has name that is too long (%d > %d characters)"),
dent->d_name, methodlen, IMETHODMAXLEN);
/* Check if there is a localized version of this method */
-
+
strcpy(pathmeth, dent->d_name);
strcpy(pathmeth+methodlen, "/");
pathinmeth= pathmeth+methodlen+1;
@@ -137,7 +137,7 @@ void readmethods(const char *pathbase, dselect_option **optionspp, int *nread) {
if (debug) fprintf(debug," readmethods(`%s',...) new method"
" name=`%s' path=`%s' pathinmeth=`%s'\n",
pathbase, meth->name, meth->path, meth->pathinmeth);
-
+
while ((c= fgetc(names)) != EOF) {
if (isspace(c)) continue;
opt= new dselect_option;
@@ -181,7 +181,7 @@ void readmethods(const char *pathbase, dselect_option **optionspp, int *nread) {
} while (c != '\n');
opt->summary= new char[strlen(vb.string())+1];
strcpy(opt->summary,vb.string());
-
+
strcpy(pathinmeth,OPTIONSDESCPFX);
strcpy(pathinmeth+sizeof(OPTIONSDESCPFX)-1,opt->name);
descfile= fopen(pathbuf,"r");
@@ -202,7 +202,7 @@ void readmethods(const char *pathbase, dselect_option **optionspp, int *nread) {
fclose(descfile);
}
strcpy(pathinmeth,METHODOPTIONSFILE);
-
+
if (debug) fprintf(debug," readmethods(`%s',...) new option"
" index=`%s' name=`%s' summary=`%.20s'"
" strlen(description=%s)=%ld"
@@ -237,7 +237,7 @@ void getcurrentopt() {
int l;
int admindirlen;
char *p;
-
+
if (!methoptfile) {
admindirlen= strlen(admindir);
methoptfile= new char[admindirlen + sizeof(CMETHOPTFILE) + 2];