author | drw <drw> | 2003-01-30 00:06:24 (UTC) |
---|---|---|
committer | drw <drw> | 2003-01-30 00:06:24 (UTC) |
commit | a885dd31b7d2ba6befb4d2d88f545940a24de82c (patch) (unidiff) | |
tree | 48470c27935d98e09b8f38b26e7b827b20271277 | |
parent | afe1478f7abfff02723bebf3122f8d8f5592b783 (diff) | |
download | opie-a885dd31b7d2ba6befb4d2d88f545940a24de82c.zip opie-a885dd31b7d2ba6befb4d2d88f545940a24de82c.tar.gz opie-a885dd31b7d2ba6befb4d2d88f545940a24de82c.tar.bz2 |
Remove command line arguments for modinfo
-rw-r--r-- | noncore/settings/sysinfo/modulesinfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/settings/sysinfo/modulesinfo.cpp b/noncore/settings/sysinfo/modulesinfo.cpp index 29cce90..7abad69 100644 --- a/noncore/settings/sysinfo/modulesinfo.cpp +++ b/noncore/settings/sysinfo/modulesinfo.cpp | |||
@@ -141,33 +141,33 @@ void ModulesInfo::slotSendClicked() | |||
141 | command.append( " " ); | 141 | command.append( " " ); |
142 | command.append( modname ); | 142 | command.append( modname ); |
143 | 143 | ||
144 | FILE* stream = popen( command, "r" ); | 144 | FILE* stream = popen( command, "r" ); |
145 | if ( stream ) | 145 | if ( stream ) |
146 | pclose( stream ); | 146 | pclose( stream ); |
147 | } | 147 | } |
148 | 148 | ||
149 | } | 149 | } |
150 | 150 | ||
151 | void ModulesInfo::viewModules( QListViewItem *modules ) | 151 | void ModulesInfo::viewModules( QListViewItem *modules ) |
152 | { | 152 | { |
153 | QString modname = modules->text( 0 ); | 153 | QString modname = modules->text( 0 ); |
154 | QString capstr = "Module: "; | 154 | QString capstr = "Module: "; |
155 | capstr.append( modname ); | 155 | capstr.append( modname ); |
156 | ModulesDtl->setCaption( capstr ); | 156 | ModulesDtl->setCaption( capstr ); |
157 | QString command = "/sbin/modinfo -nad "; | 157 | QString command = "/sbin/modinfo "; |
158 | command.append( modname ); | 158 | command.append( modname ); |
159 | FILE* modinfo = popen( command, "r" ); | 159 | FILE* modinfo = popen( command, "r" ); |
160 | 160 | ||
161 | if ( modinfo ) | 161 | if ( modinfo ) |
162 | { | 162 | { |
163 | char line[200]; | 163 | char line[200]; |
164 | ModulesDtl->detailView->setText( " Details:\n------------\n" ); | 164 | ModulesDtl->detailView->setText( " Details:\n------------\n" ); |
165 | 165 | ||
166 | while( true ) | 166 | while( true ) |
167 | { | 167 | { |
168 | int success = fscanf( modinfo, "%[^\n]\n", line ); | 168 | int success = fscanf( modinfo, "%[^\n]\n", line ); |
169 | if ( success == EOF ) | 169 | if ( success == EOF ) |
170 | break; | 170 | break; |
171 | ModulesDtl->detailView->append( line ); | 171 | ModulesDtl->detailView->append( line ); |
172 | } | 172 | } |
173 | 173 | ||