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

Side by Side Diff: ports/nethack/nethack_pepper.c

Issue 1417223003: Switch from using 'nacl_main' to 'main' entry point (Closed) Base URL: https://chromium.googlesource.com/external/naclports.git@master
Patch Set: Created 5 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « ports/netcat/nacl.patch ('k') | ports/ninja/build.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 #include <assert.h> 7 #include <assert.h>
8 #include <fcntl.h> 8 #include <fcntl.h>
9 #include <stdlib.h> 9 #include <stdlib.h>
10 #include <unistd.h> 10 #include <unistd.h>
(...skipping 25 matching lines...) Expand all
36 close(fh); 36 close(fh);
37 } 37 }
38 38
39 ret = chdir("/usr/games"); 39 ret = chdir("/usr/games");
40 if (ret != 0) { 40 if (ret != 0) {
41 perror("Can change to /usr/games."); 41 perror("Can change to /usr/games.");
42 exit(1); 42 exit(1);
43 } 43 }
44 } 44 }
45 45
46 int nacl_main(int argc, char* argv[]) { 46 int main(int argc, char* argv[]) {
47 setup_unix_environment(argv[0]); 47 setup_unix_environment(argv[0]);
48 return nethack_main(argc, argv); 48 return nethack_main(argc, argv);
49 } 49 }
OLDNEW
« no previous file with comments | « ports/netcat/nacl.patch ('k') | ports/ninja/build.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698