projects
/
opensrf-equinox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
6aedae0
)
LP#1243841 - Quiet unused return value warning in srfsh.c
author
Chris Sharp
<csharp@georgialibraries.org>
Wed, 20 Sep 2017 00:46:28 +0000 (20:46 -0400)
committer
Galen Charlton
<gmc@equinoxinitiative.org>
Mon, 7 May 2018 19:54:56 +0000 (15:54 -0400)
Using the technique described here: https://stackoverflow.com/a/
13999461
.
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
src/srfsh/srfsh.c
patch
|
blob
|
history
diff --git
a/src/srfsh/srfsh.c
b/src/srfsh/srfsh.c
index
e3705a9
..
1887bac
100644
(file)
--- a/
src/srfsh/srfsh.c
+++ b/
src/srfsh/srfsh.c
@@
-383,7
+383,7
@@
static int process_request( const char* request ) {
else if ( request[0] == '!') {
if (!no_bang) {
- system( request + 1 );
+ (void) (system( request + 1 )+1);
ret_val = 1;
}
}