Skip to contentSkip to conversation

add missing return into print_caps.c

PATCH New Cyril Hrubis 1 participant 1 message Apr 26, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 add missing return into print_caps.c

Hi!
The way there are #ifdef directives in print_caps.c there is no return in main() when caps are supported. Attached patch fixes this.

Signature · 2 lines
Cyril Hrubis
[email protected]
testcases/kernel/security/filecaps/print_caps.c +1 -2
Index: ltp-full-20100228/testcases/kernel/security/filecaps/print_caps.c
===================================================================
@@ -65,7 +65,6 @@ int main(int argc, char *argv[])
 	close(fd);
 
 	cap_free(cap);
-#else
-	return 0;
 #endif
+	return 0;
 }

------------------------------------------------------------------------------

_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list