Date: Wed, 30 Nov 2005 11:42:57 +0100 From: "Poul-Henning Kamp" <phk@phk.freebsd.dk> To: Maxim.Sobolev@portaone.com Cc: "current@freebsd.org" <current@freebsd.org> Subject: Re: Correct usage of g_read_data() API Message-ID: <6609.1133347377@critter.freebsd.dk> In-Reply-To: Your message of "Tue, 29 Nov 2005 03:07:30 PST." <438C3672.1010700@portaone.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <438C3672.1010700@portaone.com>, Maxim Sobolev writes: >--- 3 --- >error = random(); >data = g_read_data(..., &error); >if (buf == NULL) > handle_error(error); >--------- This is the correct way. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6609.1133347377>