2 warnings are fixed.
1. warning implicit declaration of function
1. warning ignoring return value of 'scanf'
Change-Id: Id7e5caa3902b9a5b4be04b383b4ef54a2b8a68df
Signed-off-by: ch79.cho <ch79.cho@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/12043
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
(cherry picked from commit
cbe6796c41a31510e1d89d22a988a6f3c2a00841)
Reviewed-on: https://gerrit.iotivity.org/gerrit/12461
printf("Input: ");
- scanf("%d", &num);
+ if(scanf("%d", &num) == EOF)
+ {
+ printf("Fail to input num\n");
+ }
fflush(stdin);
- scanf("%c", &dummy);
+
+ if(scanf("%c", &dummy) == EOF)
+ {
+ printf("Fail to input dummy\n");
+ }
fflush(stdin);
switch (num)
const char * NSGetUserInfo();\r
bool NSGetPolicy();\r
void NSSetPolicy(bool policy);\r
+bool NSGetResourceSecurity();\r
\r
#endif /* _NS_PROVIDER_SYSTEM__H_ */\r