From: Garrett C. <yab...@us...> - 2009-10-23 21:16:15
|
Update of /cvsroot/ltp/ltp/testcases/realtime/lib In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv27900/lib Modified Files: librttest.c Log Message: Fix a typo and a warning related to unchecked results from asprintf, punted by from the compiler. Signed-off-by: Garrett Cooper <yan...@gm...> Index: librttest.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/realtime/lib/librttest.c,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** librttest.c 25 Aug 2009 09:33:32 -0000 1.13 --- librttest.c 23 Oct 2009 21:16:06 -0000 1.14 *************** *** 142,146 **** } if (!strchr(all_options, cur_opt->val)) { ! fprintf(stderr, "Progreammer error -- argument --%s " "shortopt -%c wasn't listed in options (%s)\n", cur_opt->name, cur_opt->val, all_options); --- 142,146 ---- } if (!strchr(all_options, cur_opt->val)) { ! fprintf(stderr, "Programmer error -- argument --%s " "shortopt -%c wasn't listed in options (%s)\n", cur_opt->name, cur_opt->val, all_options); *************** *** 153,157 **** exit(1); } ! asprintf(&longopt_vals, "%s%c", longopt_vals, cur_opt->val); cur_opt++; } --- 153,160 ---- exit(1); } ! if (asprintf(&longopt_vals, "%s%c", longopt_vals, cur_opt->val) < 0) { ! perror("asprintf"); ! exit(2); ! } cur_opt++; } |