/[hurd]/hurd/libstore/nbd.c
ViewVC logotype

Diff of /hurd/libstore/nbd.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.10 by roland, Sun Dec 30 00:59:12 2001 UTC revision 1.11 by roland, Sun Dec 30 03:00:31 2001 UTC
# Line 325  nbdopen (const char *name, int *mod_flag Line 325  nbdopen (const char *name, int *mod_flag
325      ofs += cc;      ofs += cc;
326    } while (cc > 0 && ofs < sizeof ns);    } while (cc > 0 && ofs < sizeof ns);
327    
328    if (cc < sizeof ns    if (ofs != sizeof ns
329        || memcmp (ns.magic, NBD_INIT_MAGIC, sizeof ns.magic) != 0)        || memcmp (ns.magic, NBD_INIT_MAGIC, sizeof ns.magic) != 0)
330      {      {
331        close (sock);        close (sock);

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26