Re: [PATCH 2/2] added fputs() fgets() error handling

2013-11-04 Thread Greg KH
On Mon, Nov 04, 2013 at 02:55:48PM +0100, Stanislaw Wadas wrote: > Change-Id: I787380dda981c7cee6508a4ff566d7ca9fb273cf > Signed-off-by: Stanislaw Wadas > --- > src/gadget.c | 12 +++- > 1 file changed, 11 insertions(+), 1 deletion(-) > > diff --git a/src/gadget.c b/src/gadget.c > inde

Re: [PATCH 2/2] added fputs() fgets() error handling

2013-11-04 Thread Sergei Shtylyov
Hello. On 11/04/2013 04:55 PM, Stanislaw Wadas wrote: Change-Id: I787380dda981c7cee6508a4ff566d7ca9fb273cf This line shouldn't be present in the upstream patches. Signed-off-by: Stanislaw Wadas --- src/gadget.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) d

Re: [PATCH 2/2] added fputs() fgets() error handling

2013-11-04 Thread Daniele Forsi
2013/11/4 Stanislaw Wadas: > @@ -127,6 +132,7 @@ static void gadget_write_buf(char *path, char *name, char > *file, char *buf) > { > char p[MAX_LENGHT]; > FILE *fp; > + int ret; this new variable isn't used in the hunk that follows: > sprintf(p, "%s/%s/%s", path,

[PATCH 2/2] added fputs() fgets() error handling

2013-11-04 Thread Stanislaw Wadas
Change-Id: I787380dda981c7cee6508a4ff566d7ca9fb273cf Signed-off-by: Stanislaw Wadas --- src/gadget.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/gadget.c b/src/gadget.c index faed675..ff4f3d5 100644 --- a/src/gadget.c +++ b/src/gadget.c @@ -93,6 +93,11 @