Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(211)

Unified Diff: src/shared/gio/gio_mem_snapshot.c

Issue 12226119: Factor out duplicated GioMemoryFileSnapshotCtor() + NaClAppLoadFile() calls (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/shared/gio/gio.h ('k') | src/trusted/service_runtime/build.scons » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/shared/gio/gio_mem_snapshot.c
diff --git a/src/shared/gio/gio_mem_snapshot.c b/src/shared/gio/gio_mem_snapshot.c
index f1f553a386b555ced1195f9caf6947673ad57bb5..ae7b3dceedd49e274cc7f963e6aeddcf196fc5b0 100644
--- a/src/shared/gio/gio_mem_snapshot.c
+++ b/src/shared/gio/gio_mem_snapshot.c
@@ -26,13 +26,13 @@ struct GioVtbl const kGioMemoryFileSnapshotVtbl = {
int GioMemoryFileSnapshotCtor(struct GioMemoryFileSnapshot *self,
- char *fn) {
+ const char *filename) {
FILE *iop;
struct stat stbuf;
char *buffer;
((struct Gio *) self)->vtbl = (struct GioVtbl *) NULL;
- if (0 == (iop = fopen(fn, "rb"))) {
+ if (0 == (iop = fopen(filename, "rb"))) {
return 0;
}
if (fstat(fileno(iop), &stbuf) == -1) {
« no previous file with comments | « src/shared/gio/gio.h ('k') | src/trusted/service_runtime/build.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698