summaryrefslogtreecommitdiffstats
path: root/libk3b/tools
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2020-01-30 20:17:47 +0900
committerMichele Calgaro <[email protected]>2020-01-30 23:52:52 +0900
commit23d6d04803704b1ae3b6bdd29aa49e5fb2301f2f (patch)
treecf378199125aefbc31e8c51c636257f35ef55fd2 /libk3b/tools
parent3e15776c6f7e5fc82548ed70ff808b9bd8b10151 (diff)
downloadk3b-23d6d04803704b1ae3b6bdd29aa49e5fb2301f2f.tar.gz
k3b-23d6d04803704b1ae3b6bdd29aa49e5fb2301f2f.zip
Removed explicit usage of the 'register' keyword.
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit b557321865d43aa125591f965a459067ee93bc89)
Diffstat (limited to 'libk3b/tools')
-rw-r--r--libk3b/tools/libisofs/bswap.h2
-rw-r--r--libk3b/tools/libisofs/isofs.cpp12
2 files changed, 7 insertions, 7 deletions
diff --git a/libk3b/tools/libisofs/bswap.h b/libk3b/tools/libisofs/bswap.h
index 96bd588..96196ce 100644
--- a/libk3b/tools/libisofs/bswap.h
+++ b/libk3b/tools/libisofs/bswap.h
@@ -39,7 +39,7 @@ inline static unsigned int ByteSwap32(unsigned int x)
inline static unsigned long long int ByteSwap64(unsigned long long int x)
{
- register union { __extension__ unsigned long long int __ll;
+ union { __extension__ unsigned long long int __ll;
unsigned int __l[2]; } __x;
asm("xchgl %0,%1":
"=r"(__x.__l[0]),"=r"(__x.__l[1]):
diff --git a/libk3b/tools/libisofs/isofs.cpp b/libk3b/tools/libisofs/isofs.cpp
index 65f19eb..46bf91d 100644
--- a/libk3b/tools/libisofs/isofs.cpp
+++ b/libk3b/tools/libisofs/isofs.cpp
@@ -163,11 +163,11 @@ int ReadBootTable(readfunc *read,sector_t sector, boot_head *head, void *udata)
int i,end=0;
unsigned short sum;
boot_entry *defcur=NULL,*deflast=NULL;
- register struct validation_entry *ventry=NULL;
- register struct default_entry *dentry=NULL;
- register struct section_header *sheader=NULL;
- register struct section_entry *sentry=NULL;
- register struct section_entry_ext *extsentry=NULL;
+ struct validation_entry *ventry=NULL;
+ struct default_entry *dentry=NULL;
+ struct section_header *sheader=NULL;
+ struct section_entry *sentry=NULL;
+ struct section_entry_ext *extsentry=NULL;
head->sections=NULL;
head->defentry=NULL;
@@ -540,7 +540,7 @@ int ProcessDir(readfunc *read,int extent,int size,dircallback *callback,void *ud
*/
int JolietLevel(struct iso_volume_descriptor *ivd) {
int ret=0;
- register struct iso_supplementary_descriptor *isd;
+ struct iso_supplementary_descriptor *isd;
isd = (struct iso_supplementary_descriptor *) ivd;