Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
86183e43
Commit
86183e43
authored
Jun 09, 2011
by
Dave Cheney
Committed by
Russ Cox
Jun 09, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gopack: make unused page function a fatal error
R=iant, rsc CC=golang-dev
https://golang.org/cl/4601051
parent
5e8b9c61
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
18 deletions
+1
-18
src/cmd/gopack/ar.c
src/cmd/gopack/ar.c
+1
-18
No files found.
src/cmd/gopack/ar.c
View file @
86183e43
...
...
@@ -1532,24 +1532,7 @@ arwrite(int fd, Armember *bp)
int
page
(
Arfile
*
ap
)
{
Armember
*
bp
;
bp
=
ap
->
head
;
if
(
!
ap
->
paged
)
{
/* not yet paged - create file */
ap
->
fd
=
mkstemp
(
ap
->
fname
);
if
(
ap
->
fd
<
0
)
{
fprint
(
2
,
"gopack: can't create temp file
\n
"
);
return
0
;
}
ap
->
paged
=
1
;
}
if
(
!
arwrite
(
ap
->
fd
,
bp
))
/* write member and free buffer block */
return
0
;
ap
->
head
=
bp
->
next
;
if
(
ap
->
tail
==
bp
)
ap
->
tail
=
bp
->
next
;
free
(
bp
->
member
);
free
(
bp
);
sysfatal
(
"page"
);
return
1
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment