X-Git-Url: https://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fstdio-read.c;h=358d8cd9df2ad17e1fa010dd5b1563e5abb67f86;hb=afecf4a0bde14016fb4ab2a18395d82cfbc0fe28;hp=86b1d616db29371951ee52359cb9654d8dfc5d60;hpb=9b604b4cbfad7422bacc1c723df1d027b6a7c738;p=gnulib.git diff --git a/lib/stdio-read.c b/lib/stdio-read.c index 86b1d616d..358d8cd9d 100644 --- a/lib/stdio-read.c +++ b/lib/stdio-read.c @@ -1,5 +1,5 @@ /* POSIX compatible FILE stream read function. - Copyright (C) 2008-2011 Free Software Foundation, Inc. + Copyright (C) 2008-2012 Free Software Foundation, Inc. Written by Bruno Haible , 2011. This program is free software: you can redistribute it and/or modify @@ -131,13 +131,7 @@ fgets (char *s, int n, FILE *stream) CALL_WITH_ERRNO_FIX (char *, fgets (s, n, stream), ret == NULL) } -char * -gets (char *s) -#undef gets -{ - FILE *stream = stdin; - CALL_WITH_ERRNO_FIX (char *, gets (s), ret == NULL) -} +/* We intentionally don't bother to fix gets. */ size_t fread (void *ptr, size_t s, size_t n, FILE *stream)